简体   繁体   English

使用 state 中的 kubernetes pod 部署时节点上的磁盘压力

[英]diskpressure on node when deploying using kubernetes pod in pending state

I am trying to bring up an app that was successfully run using docker swarm.我正在尝试使用 docker swarm 成功运行一个应用程序。 I am using Kubernetes.我正在使用 Kubernetes。 I have a master VirtualBox VM and a node both Ubuntu.我有一个主 VirtualBox VM 和一个节点 Ubuntu。 The deployment and service with cpu and memory and limits set correctly ( or so I think).使用 cpu 和 memory 和限制设置正确的部署和服务(或者我认为)。 The deployment and service succeeds but kubectl describe pods consistently shows event messages as部署和服务成功,但 kubectl describe pods 始终将事件消息显示为

0/2 nodes are available: 1 node(s) had taint {node-role.kubernetes.io/master: }, that the pod didn't tolerate, 1 node(s) had taint {node.kubernetes.io/disk-pressure: }, that the pod didn't tolerate.
Warning  FailedScheduling  <unknown>  default-scheduler  0/2 nodes are available: 1 node(s) had taint {node-role.kubernetes.io/master: }, that the pod didn't tolerate, 1 node(s) had taint {node.kubernetes.io/disk-pressure: }, that the pod didn't tolerate.

I have checked a few things and increased the disk capacities on the master VM (and worker node though problem is shown only in master).我已经检查了一些东西并增加了主 VM(和工作节点,尽管问题仅在主节点中显示)上的磁盘容量。 Reset the worker node using kubeadm and redeployed.使用 kubeadm 重置工作节点并重新部署。

Also went thru similar questions and suggestions.也经历了类似的问题和建议。 Looking for suggestions to resolve this toward Pod moving to ready or out of pending state寻找解决此问题的建议,使 Pod 准备就绪或退出待处理 state

Thanks谢谢

deployment has cpu 500m and limit "1", memory 1Gi and limit 2Gi部署有 cpu 500m 和限制“1”,memory 1Gi 和限制 2Gi

On the master/main, if you really want the pod scheduled there you can try un-tainting it.在 master/main 上,如果您真的希望将 pod 安排在那里,您可以尝试取消污染它。

$ kubectl taint nodes --all node-role.kubernetes.io/master-

For the disk pressure taint, you may have something in your control plane from a previous instance of a node with the same name❓ If you know that you have enough space you can force remove it:对于磁盘压力污染,您的控制平面中可能有来自具有相同名称的节点的先前实例的某些内容❓ 如果您知道您有足够的空间,您可以强制删除它:

$ kubectl taint nodes --all node.kubernetes.io/disk-pressure-

Keep in mind that this is a taint automatically added by the node controller .请记住,这是由节点 controller自动添加的污点。

✌️ ✌️

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

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