kind: Cluster does not initialize properly, kindnet times out and crashes.
What happened:
CoreDNS fails to start, and Kindnet has timeouts in their logs:
I0402 17:39:58.069948 1 main.go:64] hostIP = 172.17.0.2
podIP = 172.17.0.2
I0402 17:40:33.166911 1 main.go:104] Failed to get nodes, retrying after error: Get https://10.96.0.1:443/api/v1/nodes: dial tcp 10.96.0.1:443: i/o timeout
I0402 17:41:03.167486 1 main.go:104] Failed to get nodes, retrying after error: Get https://10.96.0.1:443/api/v1/nodes: dial tcp 10.96.0.1:443: i/o timeout
I0402 17:41:34.167858 1 main.go:104] Failed to get nodes, retrying after error: Get https://10.96.0.1:443/api/v1/nodes: dial tcp 10.96.0.1:443: i/o timeout
I0402 17:42:06.168271 1 main.go:104] Failed to get nodes, retrying after error: Get https://10.96.0.1:443/api/v1/nodes: dial tcp 10.96.0.1:443: i/o timeout
I0402 17:42:39.168601 1 main.go:104] Failed to get nodes, retrying after error: Get https://10.96.0.1:443/api/v1/nodes: dial tcp 10.96.0.1:443: i/o timeout
panic: Reached maximum retries obtaining node list: Get https://10.96.0.1:443/api/v1/nodes: dial tcp 10.96.0.1:443: i/o timeout
What you expected to happen:
CoreDNS containers to start, and kindnet not to crash
How to reproduce it (as minimally and precisely as possible):
kind create cluster
kubectl -n kube-system logs kindnet-xxxxx
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
coredns-6955765f44-tvtk5 0/1 Pending 0 20m <none> <none> <none> <none>
coredns-6955765f44-vbpxc 0/1 Pending 0 20m <none> <none> <none> <none>
etcd-kind-control-plane 1/1 Running 0 20m 172.17.0.2 kind-control-plane <none> <none>
kindnet-wgsbc 0/1 CrashLoopBackOff 5 20m 172.17.0.2 kind-control-plane <none> <none>
kube-apiserver-kind-control-plane 1/1 Running 0 20m 172.17.0.2 kind-control-plane <none> <none>
kube-controller-manager-kind-control-plane 1/1 Running 0 20m 172.17.0.2 kind-control-plane <none> <none>
kube-proxy-gwjfp 1/1 Running 0 20m 172.17.0.2 kind-control-plane <none> <none>
kube-scheduler-kind-control-plane 1/1 Running 0 20m 172.17.0.2 kind-control-plane <none> <none>
Environment:
- kind version: (use
kind version
): 0.7.0 - Kubernetes version: (use
kubectl version
): 1.17.0 - Docker version: (use
docker info
): 19.03.8 - OS (e.g. from
/etc/os-release
): Gentoo
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 22 (13 by maintainers)
I encountered the same problem with running
kind
on Gentoo Linux. I discovered thatkind-proxy
requiresI think it is not exhaustive list of course, but may be helpful for someone.
I encountered the same problem.
kind
requires iptables to supportcomment
match, so I have enabledCONFIG_NETFILTER_XT_MATCH_COMMENT
in my kernel config to resolve the problem.Most distributions probably enable it by default, but in the case of distributions like Gentoo Linux, you should configure it properly.
I know it’ve been 2 year but thanks man, i try to setup k8s and kind on gentoo, it come to the point I want to switch my os but you saved me
That seems the problem, is missing all the
kube-proxy
rules with the services.What is kube-proxy logging
kubectl logs -n kube-system kube-proxy-pk8km
?docker info
:/etc/resolv.conf
I do have legacy iptables:
eselect iptables list
iptables --version