简体   繁体   English

尽管资源似乎可用,但无法启动新的 pod

[英]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.

相关问题 尽管是订阅所有者,但无法使用 terraform 创建 azura 资源 - Unable to create azura resources using terraform despite being a subscription owner 无法在 Pod 上附加或装载卷 - Unable to attach or mount volumes on pods EKS 集群 pod 无法连接到 inte.net - EKS cluster pods unable to connect to internet 如何启动具有更大默认临时存储的 Fargate pod? - How can I launch Fargate pods with larger default ephemeral storage? 无法构建和运行 React Native 项目。 Pod 安装失败 - Unable to build and run react native project. Pods failing to install 即使节点有 memory 可用,也不会安排 Kube.netes pod - Kubernetes pods are not scheduled even when nodes has memory available AWS EKS“0/3 个节点可用:3 个 Pod 太多”错误 - AWS EKS "0/3 nodes are available: 3 Too many pods" Error Pod 在 AWS EKS 集群中终止,因为即使有足够的资源也达到了 Pod 限制 - Pods terminating in AWS EKS cluster because the pod limit is reached even with enought resources 无法在使用“带有 Docker 的 Ubuntu”映像创建的 GKE 集群上部署 pod - Unable to deploy pods on GKE cluster created using 'Ubuntu with Docker' image 无法在 AWS 上启动配置 select Linux 2 AMI - Unable to select the Linux 2 AMI on AWS in launch configuration
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM