我有三个节点集群,不知怎的,它最终处于pod始终处于ContainerCreating状态的情况。
NAME READY STATUS RESTARTS AGE
i-have-no-sa 0/1 ContainerCreating 0 7h
prometheus-5464597859-5kfkd 0/1 ContainerCreating 0 7m
test-site-5768cf4dd5-zdjms 0/1 ContainerCreating 0 8m
如果我查看任何这些pod的日志,我可以看到以下
Normal SandboxChanged 4m (x7 over 4m) kubelet, host2 Pod sandbox changed, it will be killed and re-created.
Warning FailedCreatePodSandBox 4m (x8 over 4m) kubelet, host2 Failed create pod sandbox.
我正在使用法兰绒网络并且所有的pod正在运行
kube-dns-6f4fd4bdf-5d29c 3/3 Running 0 8h
kube-flannel-ds-74krh 1/1 Running 0 8h
kube-flannel-ds-f4x2r 1/1 Running 0 8h
kube-flannel-ds-w8dvf 1/1 Running 0 8h
kube-proxy-2qz57 1/1 Running 0 8h
kube-proxy-nnk76 1/1 Running 0 8h
kube-proxy-wzph7 1/1 Running 0 8h
在我之前的尝试中,kube-dns pod也处于待定状态,但它现在工作正常。
主人上kubernetes v1.9.0 关于slave1的Kubernetes v1.9.2 关于slave2的Kubernetes v1.9.2