Skip to content

Docker image and registry

Terminal window
kubectl create secret docker-registry docker-registry-credentials -n "my-namespace" --docker-server="--" --docker-username="--" --docker-password="--"
Terminal window
kubectl modify-secret docker-registry-credentials -n "my-namespace"

You can use the docker-registry-credentials secret to authenticate with a private Docker registry.

You can then use the secret in the values.yml file to pull the Docker image from the private registry:

imagePullSecrets:
- name: docker-registry-credentials