我们开始监视我们的k8s集群中的docker事件,并注意到在短时间内各种容器中有Kill/Die/Stop/Destroy
个容器。
那正常吗? (我认为不是)
显然不是容量问题:
Conditions:
Type Status LastHeartbeatTime LastTransitionTime Reason Message
---- ------ ----------------- ------------------ ------ -------
OutOfDisk False Thu, 16 Aug 2018 11:19:30 -0300 Tue, 14 Aug 2018 14:02:37 -0300 KubeletHasSufficientDisk kubelet has sufficient disk space available
MemoryPressure False Thu, 16 Aug 2018 11:19:30 -0300 Tue, 14 Aug 2018 14:02:37 -0300 KubeletHasSufficientMemory kubelet has sufficient memory available
DiskPressure False Thu, 16 Aug 2018 11:19:30 -0300 Tue, 14 Aug 2018 14:02:37 -0300 KubeletHasNoDiskPressure kubelet has no disk pressure
PIDPressure False Thu, 16 Aug 2018 11:19:30 -0300 Fri, 11 May 2018 16:37:48 -0300 KubeletHasSufficientPID kubelet has sufficient PID available
Ready True Thu, 16 Aug 2018 11:19:30 -0300 Tue, 14 Aug 2018 14:02:37 -0300 KubeletReady kubelet is posting ready status
所有豆荚显示状态为“正在运行”
有关进一步调试的任何提示?
答案 0 :(得分:2)
您可以在运行Pod的节点主机上按以下命令检查docker容器的状态。
docker inspect <container id>
更多选项为here
事件日志和日志日志有助于调试。
kubectl get events
journalctl --no-pager