-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Confusion about registry authentication #1840
Comments
Having the exact same problem (same versions too). Although I am able to successfully login to my private docker registry (docker login private.registry:443) as well as pull some images on the host(Mac) after adding the certificate file to the Mac keychain. |
Hello,
lastly but not tested with this configuration, add the secret you created to your service account so that you don't need to add it to every pod file. |
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
I've tried a few different ways of configuring minikube to authenticate to different Docker registries, but none of them seem to work.
minikube addons configure registry-creds
-> Fill in credentials for a private registry. However, successivehelm install
deploys continue to produceImagePullBackOff
status in Kubernetes. Unknown where this command persists credentials, so difficult to debug. Triedminikube stop; minikube start
to force the authentication to reload, but no change in behavior.minikube addons enable registry-creds
andminikube addons enable registry
just in case, but no change in behavior.minikube ssh
->docker login [<URL>]
. This produces a/home/docker/.docker/config.json
file in minikube, buthelm install
deploys continue to produceImagePullBackOff
status in Kubernetes. I triedminikube stop; minikube start
, but the resulting minikube VM then deletes the/home/docker/.docker/config.json
file.minikube ssh
->mkdir -p /home/docker/.docker
->vi /home/docker/.docker/config.json
, inserting Docker registry configuration manually. Same behavior as before.regsecret
according to the Kubernetes docs, but this appears to require each pod to be specifically configured to point to the secret; there's no magic secret name that would get automatically applied.There are so many different ways to configure registry authentication for minikube, I have no idea which one to use, and no idea how to force Kubernetes to synchronize against the updated credentials. Some tutorials even suggest manipulating Kubernetes secrets as yet another way to configure things. Can someone produce a complete set of steps for getting minikube to authenticate to a private registry? Because there's a lot of deprecated tutorials, alternate configuration methods, and brokenness here.
I'm using minikube v0.21.0 on macOS 10.12.
By the way, is there some minikube configuration for reusing the host's registry credentials? That would dramatically simply things.
The text was updated successfully, but these errors were encountered: