我有三个节点集群,不知何故,它最终处于 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 on master Kubernetes v1.9.2 on slave1 Kubernetes v1.9.2 on slave2