Closed ongiant closed 11 months ago
China is unable to download images from registry.k8s.io. You can use a github codespace to download them from here, then upload to your own dockerhub, and download these images locally from dockerhub. Change them to the corresponding names with docker tag and try again.
China is unable to download images from registry.k8s.io. You can use a github codespace to download them from here, then upload to your own dockerhub, and download these images locally from dockerhub. Change them to the corresponding names with docker tag and try again.
Thanks for your answer, But I have configed a proxy on my local machine and downloaded the image. Afterwards, I used minikube image load
command to load the image and attempted to enable ingress
, but it still failed. Could there be an issue with my image name and tag?
➜ ~ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
paketobuildpacks/run base-cnb f2e5000af0cb 2 weeks ago 87MB
registry.k8s.io/ingress-nginx/kube-webhook-certgen v20230407 7e7451bb7042 3 months ago 47.2MB
kicbase/stable v0.0.39 67a4b1138d2d 3 months ago 1.05GB
gcr.io/k8s-minikube/kicbase v0.0.39 67a4b1138d2d 3 months ago 1.05GB
registry.k8s.io/ingress-nginx/controller v1.7.0 0d4c0564c465 3 months ago 283MB
registry.k8s.io/ingress-nginx/kube-webhook-certgen v20230312-helm-chart-4.5.2-28-g66a760794 5a86b03a88d2 4 months ago 47.1MB
edge-service latest 068862751604 43 years ago 297MB
config-service latest 9ccc5cc0068a 43 years ago 289MB
order-service latest b91d8d94ccb3 43 years ago 298MB
paketobuildpacks/builder base 99ec7fb86b9d 43 years ago 1.34GB
catalog-service latest 595998cf4202 43 years ago 293MB
I solved it by changing the image registry. However, I had to set .spec.template.spec.hostNetwork:
to true
(see:https://github.com/kubernetes/minikube/issues/16828#issuecomment-1716160177 ) in the Deployment
of ingress-nginx-controller
in order for ingress-nginx-controller
to work properly. I would like to know why it can work correctly just by using the minikube addons enable ingress
command as mentioned in the book.
@ongiant thanks for reporting the issue and for sharing a working solution. I have now included a guide for configuring Minikube behind a proxy and linked to your instructions to make the ingress work. Thank you!
I'm closing this issue for now, but feel free to leave new comments in case you find new information about this problem, or open a new issue. It looks like there's some problem in the specific ingress add-on in Minikube, so I hope that will be fixed in the Minikube project to make the setup easier when behind a proxy.
Hi, I'm stuck in chapter 9.5.1. When I tried to enable
ingress
, but always failed.cluster details
ingress
:kubectl get pods -A
kubectl describe -n ingress-nginx ingress-nginx-controller-6cc5ccb977-q2w47
kubectl describe pod -n ingress-nginx ingress-nginx-admission-create-wkf7d
kubectl describe pod -n ingress-nginx ingress-nginx-admission-patch-2pqg8
minikube logs --file=logs.txt
logs.txt