Warning FailedScheduling default-scheduler Insufficient cpu Warning FailedScheduling default-scheduler Insufficient cpu 2022-06-28 661 pod错误提示 # kubectl get pods -n ms NAME READY STATUS RESTARTS AGE order-7f6794bbcd-nlgtx 0/1 Pending 0 78s product-5cb556b9f4-z8d6s 0/1 Pending 0 4m3s # #kubectl describe pod order-7f6794bbcd-nlgtx -n ms Name: order-7f6794bbcd-nlgtx Namespace: ms Priority: 0 Node: <none> Labels: app=order pod-template-hash=7f6794bbcd project=ms Annotations: <none> Status: Pending IP: IPs: <none> Controlled By: ReplicaSet/order-7f6794bbcd Containers: order: Image: 100.100.100.11/microservice/order:2020-06-01-15-04-08 Port: 8020/TCP Host Port: 0/TCP Limits: cpu: 1 memory: 1Gi Requests: cpu: 500m memory: 256Mi Liveness: tcp-socket :8020 delay=60s timeout=1s period=10s #success=1 #failure=3 Readiness: tcp-socket :8020 delay=60s timeout=1s period=10s #success=1 #failure=3 Environment: <none> Mounts: /var/run/secrets/kubernetes.io/serviceaccount from default-token-86prk (ro) Conditions: Type Status PodScheduled False Volumes: default-token-86prk: Type: Secret (a volume populated by a Secret) SecretName: default-token-86prk Optional: false QoS Class: Burstable 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 <unknown> default-scheduler 0/3 nodes are available: 3 Insufficient cpu. Warning FailedScheduling <unknown> default-scheduler 0/3 nodes are available: 3 Insufficient cpu. [root@node-16 k8s]# 原因 根据上面的提示,是当前的nodes CPU资源不足 所引起创建pods失败! 解决办法 1: 给nodes 增加cpu 资源 2:针对nodes 回收没用的pods 增加nodes资源后 问题解决! # kubectl top nodes NAME CPU(cores) CPU% MEMORY(bytes) MEMORY% node1 163m 4% 5116Mi 66% node2 91m 2% 5191Mi 67% node3 97m 2% 4575Mi 59% # kubectl get pods -n ms NAME READY STATUS RESTARTS AGE product-5cb556b9f4-pg78s 1/1 Running 0 20m stock-9cb4758b5-6mwfm 1/1 Running 0 71m # 免费搭建微信查券返利机器人来轻松赚佣金 文章来自:IT技术分享网 分享地址:http://www.5ityx.cn/cate100/48158.html 上一篇: IDEA上Java项目控制台中文乱码 下一篇: .gitignore 文件不生效问题 & 解决方法 Warning FailedScheduling default-scheduler Insufficient cpu 相关内容 .gitignore与.git/info/exclude区别 .gitignore文件忽略提交unpackage包到github仓库(uni-app) .h5文件模型如何使用,并且给出代码 .java编译成.class 与 .class反编译成.java .lnk文件 和一种较新的.lnk病毒及解决方法 /etc/profile文件使用source不能全局生效的解决方法 /etc/profile文件简单介绍 /usr/bin/ld: cannot find -l 基本原理解释与解决方法 10G_Ethernet_02 10G Ethernet Subsystem 简介 10个国外设计网站(自学设计的童鞋建议收藏) 10个好玩到爆的网站,打开就能玩,个个超有趣 10个开源/免费的电子商务平台 10个方法提高你的编程生产力 10个经典C语言算法—零基础小白必学 10个顶级的海外工作外包平台 10分钟!快速部署ChatGPT微信公众号机器人!