Skip to content

Instantly share code, notes, and snippets.

@quangthe
Created October 14, 2021 07:18
Show Gist options
  • Save quangthe/a6774b2ff132fb8af8dc741080ad7dd7 to your computer and use it in GitHub Desktop.
Save quangthe/a6774b2ff132fb8af8dc741080ad7dd7 to your computer and use it in GitHub Desktop.
Create Gitlab image pull secret
# Create image pull secret
kubectl delete secret gitlab-registry-creds --ignore-not-found
kubectl create secret docker-registry gitlab-registry-creds \
--docker-server=https://${CI_REGISTRY} \
--docker-username=${CI_DEPLOY_USER} \
--docker-password=${CI_DEPLOY_PASSWORD}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment