Created
October 14, 2021 07:18
-
-
Save quangthe/a6774b2ff132fb8af8dc741080ad7dd7 to your computer and use it in GitHub Desktop.
Create Gitlab image pull secret
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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