在EKS集群中创建Pod失败,出现FailedScheduling错误



我在公共子网中创建了一个具有1个工作节点的新EKS集群。我能够查询节点,连接到集群,并运行pod创建命令,但是,当我试图创建一个pod时,它失败了,通过描述pod得到以下错误。请指导。

Tolerations:                 node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
Type     Reason            Age   From               Message
----     ------            ----  ----               -------
Warning  FailedScheduling  81s   default-scheduler  0/1 nodes are available: 1 Too many pods. preemption: 0/1 nodes are available: 1 No preemption victims found for incoming pod.
Warning  FailedScheduling  16m                 default-scheduler  0/2 nodes are available: 2 Too many pods, 2 node(s) had untolerated taint {node.kubernetes.io/unschedulable: }, 2 node(s) were unschedulable. preemption: 0/2 nodes are available: 2 Preemption is not helpful for scheduling.
Warning  FailedScheduling  16m                 default-scheduler  0/3 nodes are available: 2 node(s) had untolerated taint {node.kubernetes.io/unschedulable: }, 2 node(s) were unschedulable, 3 Too many pods. preemption: 0/3 nodes are available: 1 No preemption victims found for incoming pod, 2 Preemption is not helpful for scheduling.
Warning  FailedScheduling  14m (x3 over 22m)   default-scheduler  0/2 nodes are available: 1 node(s) had untolerated taint {node.kubernetes.io/unschedulable: }, 1 node(s) were unschedulable, 2 Too many pods. preemption: 0/2 nodes are available: 1 No preemption victims found for incoming pod, 1 Preemption is not helpful for scheduling.
Warning  FailedScheduling  12m                 default-scheduler  0/2 nodes are available: 1 Too many pods, 2 node(s) had untolerated taint {node.kubernetes.io/unschedulable: }, 2 node(s) were unschedulable. preemption: 0/2 nodes are available: 2 Preemption is not helpful for scheduling.
Warning  FailedScheduling  7m14s               default-scheduler  no nodes available to schedule pods
Warning  FailedScheduling  105s (x5 over 35m)  default-scheduler  0/1 nodes are available: 1 Too many pods. preemption: 0/1 nodes are available: 1 No preemption victims found for incoming pod.

我能够获得节点的状态,它看起来已经准备好了:

kubectl get nodes  
NAME                         STATUS   ROLES    AGE   VERSION
ip-10-0-12-61.ec2.internal   Ready    <none>   15m   v1.24.7-eks-fb459a0

在排除故障时,我尝试了以下选项:

  1. 重新创建完整的演示集群-仍然是相同的错误
  2. 尝试用不同的图像重新创建pod -仍然是相同的错误
  3. 试图将实例类型增加到t3。微-仍然相同的错误
  4. 检查了群集中的安全组和其他参数-无法访问RCA

这是由于节点的POD限制或IP

如果我们看到亚马逊官方文档t3.micro2私人的IP。大概你可以绕过4第一个IP被Node等使用,也会有默认的系统pod作为Daemon set运行,等等。

添加新的实例或升级到更大的实例,可以处理更多的pod

相关内容

  • 没有找到相关文章

最新更新