Skip to content

Instantly share code, notes, and snippets.

@blanks88
Last active January 12, 2022 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blanks88/3b0c81fa3a15f782f94775462578ae0a to your computer and use it in GitHub Desktop.
Save blanks88/3b0c81fa3a15f782f94775462578ae0a to your computer and use it in GitHub Desktop.
Kubernetes cheat sheet

Login in Docker registry

  1. Create secret
kubectl create secret docker-registry dockerLogin --docker-server=https://index.docker.io/v2/ --docker-username=USER_NAME --docker-password=USER_PSW --docker-email=USER_EMAIL
  1. Implement on deployment
  template:
  ...
    spec:
    ...
      imagePullSecrets:
        - name: dockerLogin
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment