You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

EKS集群中Pod持续处于Pending状态的原因排查求助

EKS集群中Pod持续处于Pending状态的原因排查求助

大家好,我最近在部署EKS集群和应用时遇到了棘手的问题,Pod一直卡在Pending状态,想请各位帮忙分析下原因:

我的操作流程:

  1. 使用eksctl创建EKS集群,命令如下:
eksctl create cluster \
--name app \
--version 1.29 \
--region us-east-1 \
--nodegroup-name app-worker-group \
--node-type t2.micro \
--nodes 1 \
--vpc-cidr 172.31.0.0/16
  1. 部署应用的Deployment:
kubectl apply -f k8s/deployment.yaml

Deployment的YAML配置内容如下:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: app-api
  labels:
    app: app-api
spec:
  replicas: 1
  selector:
    matchLabels:
      app: app-api
  template:
    metadata:
      labels:
        app: app-api
    spec:
      containers:
      - name: app-api
        image: path/to/image
        ports:
        - containerPort: 2201 # port of the node js app

问题现象:

执行kubectl get pod后,目标Pod始终处于Pending状态:

~/Documents/app kubectl get pod
NAME                       READY   STATUS    RESTARTS   AGE
app-api-785cbb9d89-vvbdf   0/1     Pending   0          11h

补充的Pod调度事件信息:

Type     Reason            Age                 From               Message
----     ------            ----                ----               -------
Warning  FailedScheduling  2m1s (x4 over 17m)  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.

从事件里的*Too many pods*提示来看,我猜测是不是t2.micro节点的Pod数量上限被占满了?但我只部署了这一个应用Pod,集群里应该只有系统默认运行的Pod吧?有没有大佬能帮我确认这个可能性,或者还有其他潜在的原因吗?

备注:内容来源于stack exchange,提问作者Bear Bile Farming is Torture

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.20 06:59:29