Docker image and registry
kubectl create secret docker-registry docker-registry-credentials -n "my-namespace" --docker-server="--" --docker-username="--" --docker-password="--"
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