Skip to content

Instantly share code, notes, and snippets.

@quangthe
Created October 14, 2021 07:18
Show Gist options
  • Select an option

  • Save quangthe/a6774b2ff132fb8af8dc741080ad7dd7 to your computer and use it in GitHub Desktop.

Select an option

Save quangthe/a6774b2ff132fb8af8dc741080ad7dd7 to your computer and use it in GitHub Desktop.

Revisions

  1. quangthe created this gist Oct 14, 2021.
    6 changes: 6 additions & 0 deletions create_image_pull_secret.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    # 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}