- 已编辑
安装之后coredns pod状态一直是ContainerCreating
Warning FailedCreatePodSandBox 66s kubelet, test-03 Failed to create pod sandbox: rpc error: code = Unknown desc = [failed to set up sandbox container “ff9bb62199e4265edb42cf3eeaca47ab5aa7945d2c35089ed6907d91d1d6fa71” network for pod “coredns-74d59cc5c6-c9t2q”: networkPlugin cni failed to set up pod “coredns-74d59cc5c6-c9t2q_kube-system” network: stat /var/lib/calico/nodename: no such file or directory: check that the calico/node container is running and has mounted /var/lib/calico/, failed to clean up sandbox container “ff9bb62199e4265edb42cf3eeaca47ab5aa7945d2c35089ed6907d91d1d6fa71” network for pod “coredns-74d59cc5c6-c9t2q”: networkPlugin cni failed to teardown pod “coredns-74d59cc5c6-c9t2q_kube-system” network: neither iptables nor ip6tables usable]
Normal SandboxChanged <invalid> (x7 over 66s) kubelet, test-03 Pod sandbox changed, it will be killed and re-created.
请问是coredns什么地方配置得不对吗
calico controller可以起来 calico-node起不了
Type Reason Age From Message
Warning Unhealthy 21m (x124 over 91m) kubelet, test-03 Liveness probe failed: calico/node is not ready: bird/confd is not live: exit status 1
Warning Unhealthy 6m51s (x7 over 81m) kubelet, test-03 Liveness probe failed: calico/node is not ready: Felix is not live: Get http://localhost:9099/liveness: dial tcp 127.0.0.1:9099: connect: connection refused
Warning BackOff 114s (x298 over 87m) kubelet, test-03 Back-off restarting failed container