minikube: Cannot start ingress addon: waiting for pod
Steps to reproduce the issue:
minikube start --vm-driver hyperv --cpus 2 --memory=8192minikube addons enable ingress --alsologtostderr
Full output of failed command:
❯ minikube addons enable ingress --alsologtostderr
I0220 16:57:51.899458 28192 out.go:229] Setting OutFile to fd 88 ...
I0220 16:57:51.900398 28192 out.go:276] TERM=,COLORTERM=, which probably does not support color
I0220 16:57:51.900398 28192 out.go:242] Setting ErrFile to fd 92...
I0220 16:57:51.901397 28192 out.go:276] TERM=,COLORTERM=, which probably does not support color
I0220 16:57:51.921175 28192 addons.go:55] Setting ingress=true in profile "minikube"
I0220 16:57:51.921826 28192 addons.go:131] Setting addon ingress=true in "minikube"
I0220 16:57:51.922369 28192 host.go:66] Checking if "minikube" exists ...
I0220 16:57:51.922904 28192 main.go:119] libmachine: [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM minikube ).state
I0220 16:57:52.389395 28192 main.go:119] libmachine: [stdout =====>] : Running
I0220 16:57:52.390040 28192 main.go:119] libmachine: [stderr =====>] :
I0220 16:57:52.390040 28192 addons.go:247] installing /etc/kubernetes/addons/ingress-configmap.yaml
I0220 16:57:52.390734 28192 ssh_runner.go:310] scp memory --> /etc/kubernetes/addons/ingress-configmap.yaml (1251 bytes)
I0220 16:57:52.390734 28192 main.go:119] libmachine: [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM minikube ).state
I0220 16:57:52.848442 28192 main.go:119] libmachine: [stdout =====>] : Running
I0220 16:57:52.850487 28192 main.go:119] libmachine: [stderr =====>] :
I0220 16:57:52.851015 28192 main.go:119] libmachine: [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM minikube ).networkadapters[0]).ipaddresses[0]
I0220 16:57:53.576395 28192 main.go:119] libmachine: [stdout =====>] : 172.23.0.69
I0220 16:57:53.576923 28192 main.go:119] libmachine: [stderr =====>] :
I0220 16:57:53.576923 28192 sshutil.go:48] new ssh client: &{IP:172.23.0.69 Port:22 SSHKeyPath:C:\Users\XX\.minikube\machines\minikube\id_rsa Username:docker}
I0220 16:57:53.675885 28192 addons.go:247] installing /etc/kubernetes/addons/ingress-rbac.yaml
I0220 16:57:53.675885 28192 ssh_runner.go:310] scp memory --> /etc/kubernetes/addons/ingress-rbac.yaml (4828 bytes)
I0220 16:57:53.682452 28192 addons.go:247] installing /etc/kubernetes/addons/ingress-dp.yaml
I0220 16:57:53.682452 28192 ssh_runner.go:310] scp memory --> /etc/kubernetes/addons/ingress-dp.yaml (8533 bytes)
I0220 16:57:53.717473 28192 ssh_runner.go:149] Run: sudo KUBECONFIG=/var/lib/minikube/kubeconfig /var/lib/minikube/binaries/v1.20.2/kubectl apply -f /etc/kubernetes/addons/ingress-configmap.yaml -f /etc/kubernetes/addons/ingress-rbac.yaml -f /etc/kubernetes/addons/ingress-dp.yaml
I0220 16:57:53.859260 28192 addons.go:346] Verifying addon ingress=true in "minikube"
I0220 16:57:53.861262 28192 out.go:119] * Verifying ingress addon...
* Verifying ingress addon...
I0220 16:57:53.869261 28192 kapi.go:75] Waiting for pod with label "app.kubernetes.io/name=ingress-nginx" in ns "kube-system" ...
I0220 16:57:53.884052 28192 kapi.go:86] Found 3 Pods for label selector app.kubernetes.io/name=ingress-nginx
I0220 16:57:53.884052 28192 kapi.go:96] waiting for pod "app.kubernetes.io/name=ingress-nginx", current state: Pending: [<nil>]
I0220 16:57:54.391870 28192 kapi.go:96] waiting for pod "app.kubernetes.io/name=ingress-nginx", current state: Pending: [<nil>]
I0220 16:57:54.889169 28192 kapi.go:96] waiting for pod "app.kubernetes.io/name=ingress-nginx", current state: Pending: [<nil>]
I0220 16:57:55.400154 28192 kapi.go:96] waiting for pod "app.kubernetes.io/name=ingress-nginx", current state: Pending: [<nil>]
I0220 16:57:55.900645 28192 kapi.go:96] waiting for pod "app.kubernetes.io/name=ingress-nginx", current state: Pending: [<nil>]
I0220 16:57:56.403320 28192 kapi.go:96] waiting for pod "app.kubernetes.io/name=ingress-nginx", current state: Pending: [<nil>]
I0220 16:57:56.904065 28192 kapi.go:96] waiting for pod "app.kubernetes.io/name=ingress-nginx", current state: Pending: [<nil>]
I0220 16:57:57.400503 28192 kapi.go:96] waiting for pod "app.kubernetes.io/name=ingress-nginx", current state: Pending: [<nil>]
I0220 16:57:57.902159 28192 kapi.go:96] waiting for pod "app.kubernetes.io/name=ingress-nginx", current state: Pending: [<nil>]
I0220 16:57:58.391056 28192 kapi.go:96] waiting for pod "app.kubernetes.io/name=ingress-nginx", current state: Pending: [<nil>]
I0220 16:57:58.891532 28192 kapi.go:96] waiting for pod "app.kubernetes.io/name=ingress-nginx", current state: Pending: [<nil>]
Windows 10 Docker version 20.10.2, build 2291f61 minikube version: v1.17.1 commit: 043bdca07e54ab6e4fc0457e3064048f34133d7e
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 3
- Comments: 52 (11 by maintainers)
I’m seeing this same issue when enabling the ingress addon. Let me know what other information would be helpful here.
I think I know why, it because the China’s great GFW build by you know who.
In the minikube , here is a
--image-mirror-country, and unfortunately I should set it tocn,to use aliyun’s registry.But in some reason, it not available. so I get that error.
If other dude in China, not use
--image-mirror-country, it will use gcr and will get same thing for good reason by GFW.solution
In
minikube sshpull image from docker hub :The second is a personal image just mirror
ingress-nginx/controllerforgcrAnd then rename tag to what you need, and then
minikube addons enable ingressI think the registry of
aliyuncan use for his own build maybe@adamf Can you do a fresh setup and send the logs?
I’m having trouble recreating the issue. Also add any driver settings and make sure to paste them here.
In my case, apache o ubunto was using port 80
sudo /etc/init.d/apache2 stopsolved itI’m in china and here is my way to solve this problem: minikube version: v1.23.2
I found no matter how I specify the
--image="IngressController=***", It still goes tok8s.gcr.ioSo I looked into source code and found thisSo I use
minikube addons enable ingress --registries="IngressController=docker.io" --images="IngressController=wangshun1024/ingress-nginx-controller:v1.0.0-beta.3,KubeWebhookCertgenCreate=liangjw/kube-webhook-certgen:v1.0,KubeWebhookCertgenPatch=liangjw/kube-webhook-certgen:v1.0"and it works.For others: You can found a replacement
ingressandkube-webhook-certgenimages for your version of minikube and use the same command as I but with different--imagesand--registriesparameters.Some suggestions: Maybe remove the
Registriesparameter forIngressControllerand move intoImagesdirectly is a better idea? just likeKubeWebhookCertgenCreateandKubeWebhookCertgenPatch.I had the same issue with ‘minikube addons enable ingress’ command. Hence tried the following solution: Tried to pull the ingress image directly using ‘docker pull’ from command line Got the error - Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp 192.168.10.1:443: connect: connection refused Changed the network to another ISP and reissued the ‘docker pull’ command. This time the 2 images (k8s.gcr.io/ingress-nginx/controller:v0.44.0 , docker.io/jettech/kube-webhook-certgen:v1.5.1 ) downloaded properly Post that, issued the minikube addons enable ingress command and it worked successfully
I faced this image downloading issue during other scenarios also and had to use the same - switch ISP solution. So bottomline - one possibility to check is