Last active
January 15, 2018 09:58
-
-
Save jdolitsky/2e97a6c1e55876fcd891584d6683ca78 to your computer and use it in GitHub Desktop.
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
kubectl config use-context $KUBE_CONTEXT | |
kubectl -n $NAMESPACE create secret docker-registry codefresh \ | |
--docker-server=r.cfcr.io \ | |
--docker-username=$CODEFRESH_USERNAME \ | |
--docker-password=$DOCKER_ACCESS_TOKEN \ | |
--docker-email=$CODEFRESH_EMAIL | |
kubectl -n $NAMESPACE patch serviceaccount default \ | |
-p '{"imagePullSecrets":[{"name":"codefresh"}]}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment