-
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
registry-creds addon: Temporary Error: secrets "registry-creds-ecr" not found #5885
Comments
Hey @detlef-brendle thanks for opening this issue. Based on this comment it looks like you need to run the following to configure ecr credentials:
However, if the secret isn't being created after the first command I suspect the second won't do anything. Perhaps you could try both commands again after a fresh |
Hi @priyawadhwa. ❌ ERROR creating |
I had the exact same problem, I downgraded to the 1.4.0 as a coworker had that version, and that fixed the problem for me. |
Thanks for the tip @MalgAmoe. @detlef-brendle, does v1.4.0 work for you? |
Yes, 1.4.0 works fine. Can you put that on your roadmap ? |
I havent' looked into this, but I'm betting this is related to: c9c4a8f#diff-b9bd799b523100f1bc7d8b18c23df5e3 Any thoughts @reegnz? |
registry-creds-ecr
secret: Temporary Error: secrets "registry-creds-ecr" not found
Workaroundkubectl -n kube-system create secret generic registry-creds-ecr
kubectl -n kube-system create secret generic registry-creds-gcr
kubectl -n kube-system create secret generic registry-creds-dpr And then: minikube addons configure registry-creds Looks like the code is failing to create the secrets if they don't already exists. |
In my case I just wanted to use my own private registry, so I answer any workaroud for this ? |
Just create empty secrets like I showed in #5885 (comment), and then run configure, configuring only the secrets you need. |
By looking at the code, maybe the issue is due to a change at this line minikube/pkg/minikube/service/service.go Lines 342 to 345 in d1151d9
Before 1.5.0, the code didn't check the error on |
/assign |
This works, thanks! |
starting with a fresh cluster on Ubuntu 19.10 using VirtualBox
minikube start
(all is starting fine)
😄 minikube v1.5.2 on Ubuntu 19.10
✨ Automatically selected the 'virtualbox' driver (alternates: [none])
💿 Downloading VM boot image ...
> minikube-v1.5.1.iso.sha256: 65 B / 65 B [--------------] 100.00% ? p/s 0s
> minikube-v1.5.1.iso: 143.76 MiB / 143.76 MiB [-] 100.00% 3.09 MiB p/s 47s
🔥 Creating virtualbox VM (CPUs=2, Memory=2000MB, Disk=20000MB) ...
🐳 Preparing Kubernetes v1.16.2 on Docker '18.09.9' ...
💾 Downloading kubeadm v1.16.2
💾 Downloading kubelet v1.16.2
🚜 Pulling images ...
🚀 Launching Kubernetes ...
⌛ Waiting for: apiserver
🏄 Done! kubectl is now configured to use "minikube"
Then running ecr credentials fails:
minikube addons configure registry-creds
⚠️ ERROR creating
(entering all data for ECR)
❌ ERROR creating
registry-creds-ecr
secret: Temporary Error: secrets "registry-creds-ecr" not found❌ ERROR creating
registry-creds-gcr
secret: Temporary Error: secrets "registry-creds-gcr" not foundregistry-creds-dpr
secret✅ registry-creds was successfully configured
After this procedure no secret has been setup and therefore image Pull fails.
Any Idea ?
Thanks,
detlef
The text was updated successfully, but these errors were encountered: