I have a private Docker repo with bunch of images. I am using Helm to deploy them to a Kubernetes cluster.
Helm values.yaml contains the repository credentials:
image:
repository: <repo>
tag: <version tag>
pullPolicy: IfNotPresent
imageCredentials:
registry: <repo>
username: <username>
password: <pw>
After doing the helm installation
helm install myhelmchart --values values.yaml --version
the pod's status is Init:ErrImagePull. kubectl describe pods gives this error:
Failed to pull image "image:tag": rpc error: code = Unknown desc = Error response from daemon: Get [image]/manifests/[version]: unauthorized: authentication required