Installing docker registry secrets to access gitlab docker registries in kubernetes
The client's development team stored their images in Gitlab. In order to access the docker registry during a deployment, a docker-registry secret needs to be installed. It's fairly straightforward to do so.
k8s$ kubectl create secret docker-registry registry.gitlab.com --docker-server="registry.gitlab.com" --docker-username="<your token username>" --docker-password="<your token password>" --docker-email="<token email>" --namespace="<namespace>"
for example:
k8s$ kubectl create secret docker-registry registry.gitlab.com --docker-server="registry.gitlab.com" --docker-username="builder" --docker-password="<duh>" --docker-email="build@clientsdomain.com" --namespace="app-namespace"