[英]Unable to launch new pods despite resources seemingly available
I'm unable to launch new pods despite resources seemingly being available.尽管资源似乎可用,但我无法启动新的 pod。
Judging from the below screenshot there should be room for about 40 new pods.从下面的屏幕截图来看,应该有大约 40 个新 pod 的空间。
And also judging from the following screenshot the nodes seems fairly underutilized而且从下面的屏幕截图来看,节点似乎没有得到充分利用
However I'm currently facing the below error message但是我目前正面临以下错误消息
0/3 nodes are available: 1 Insufficient cpu, 2 node(s) had volume node affinity conflict.
And last night it was the following昨晚是以下内容
0/3 nodes are available: 1 Too many pods, 2 node(s) had volume node affinity conflict.
Most of my services require very little memory and cpu.我的大部分服务只需要很少的 memory 和 cpu。 And therefore their resources are configured as seen below
因此,他们的资源配置如下所示
resources:
limits:
cpu: 100m
memory: 64Mi
requests:
cpu: 100m
memory: 32Mi
Why I can't deploy more pods?为什么我不能部署更多的 pod? And how to fix this?
以及如何解决这个问题?
Your problem is "volume node affinity conflict".您的问题是“卷节点关联冲突”。
From Kube.netes Pod Warning: 1 node(s) had volume node affinity conflict :来自Kube.netes Pod 警告:1 个节点有卷节点关联冲突:
The error "volume node affinity conflict" happens when the persistent volume claims that the pod is using are scheduled on different zones, rather than on one zone, and so the actual pod was not able to be scheduled because it cannot connect to the volume from another zone.
当 pod 正在使用的持久卷声明被安排在不同的区域而不是一个区域时,会发生错误“卷节点关联冲突”,因此实际的 pod 无法被安排,因为它无法连接到来自的卷另一个区域。
First, try to investigate exactly where the problem is.首先,尝试准确调查问题所在。 You can find a detailed guide here .
您可以在此处找到详细指南。 You will need commands like:
您将需要以下命令:
kubectl get pv
kubectl describe pv
kubectl get pvc
kubectl describe pvc
Then you can delete the PV and PVC and move pods to the same zone along with the PV and PVC.然后您可以删除 PV 和 PVC,并将 pod 与 PV 和 PVC 一起移动到同一区域。
volume node affinity conflict
- the volume you tried to mount is not available on any of the node. volume node affinity conflict
- 您尝试安装的卷在任何节点上都不可用。 You can resolve this or paste your volumes
section to the question for further examination.您可以解决此问题或将您的
volumes
部分粘贴到问题中以供进一步检查。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.