简体   繁体   English

如何在k8s上调试被驱逐的pod

[英]how to debug evicted pod on k8s

Team, I searched some but could not get much as am new to k8s. 团队,我搜索了一些,但不能得到很多新的k8s。 my pods are evicted and I get message as "Status: Failed Reason: Evicted Message: The node was low on resource: nodefs." 我的pod已被驱逐,我收到消息为“Status:Failed Reason:Evicted Message:节点资源不足:nodefs。”

any helm how can I figure out what is going on? 任何掌舵我怎么能弄清楚发生了什么?

Run kubectl describe pod <pod name> and look for the node name of this pod. 运行kubectl describe pod <pod name>并查找此pod的节点名称。 Followed by kubectl describe node <node-name> that will show what type of resource cap the node is hitting under Conditions: section. 接下来是kubectl describe node <node-name> ,它将显示节点在Conditions:部分下命中的资源上限类型。

From my experience this happens when the host node runs out of disk space. 根据我的经验,当主机节点磁盘空间不足时会发生这种情况。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM