that the pod didn't tolerate, 2 Insufficient cpu.

K8S Pod 一直处于 Pending 状态
有几个原因可以阻止 Pod 运行,但我们将描述三个主要问题:

  • 调度问题:无法在任何节点上调度 Pod。
  • 镜像问题:下载容器镜像时出现问题。
  • 依赖性问题:Pod 需要一个卷、Secret 或 ConfigMap 才能运行。
    image
    image
[root@k8smaster ~]# kubectl describe pod

Node-Selectors:  <none>
Tolerations:     node.kubernetes.io/not-ready:NoExecute for 300s
                 node.kubernetes.io/unreachable:NoExecute for 300s
Events:
  Type     Reason            Age   From               Message
  ----     ------            ----  ----               -------
  Warning  FailedScheduling  12h   default-scheduler  0/3 nodes are available: 1 node(s) had taint {node-role.kubernetes.io/master: }, that the pod didn't tolerate, 2 Insufficient cpu.
  Warning  FailedScheduling  10m   default-scheduler  0/3 nodes are available: 1 node(s) had taint {node-role.kubernetes.io/master: }, that the pod didn't tolerate, 2 Insufficient cpu.
  
# 调小配置
resources:
   limits:
      cpu: 200m
      memory: 256Mi
   requests:
      cpu: 200m
      memory: 10Mi
posted @ 2022-11-23 10:05  VipSoft  阅读(1558)  评论(0)    收藏  举报