Creating K8s registry secrets - 03-29-20

Hosting side projects in kubernetes and using gitlab container registry? This is the command I run to create the needed secret for the cluster to pull the image:

$ kubectl create secret docker-registry cool-project-gitlab \ \
    --docker-username=gitlab+deploy-token-666666 \
    --docker-password=xxxxxxxxxxxxxxxxxxxx \

Then in the deployment.yml use the gitlab registry image and newly created image secret:

    imagePullPolicy: IfNotPresent
    name: cool-project-api
- name: cool-projects-gitlab
\- [ kubernetes ]