当前位置:网站首页>Kubernetes Pod 排错指南
Kubernetes Pod 排错指南
2022-06-29 13:44:00 【富士康质检员张全蛋】
Pod排错
Pod 各种异常现象,可能的原因以及解决方法。
- 查看 Pod 状态: kubectl get pod <pod-name> -o wide
- 查看 Pod 的 yaml 配置: kubectl get pod <pod-name> -o yaml
- 查看 Pod 事件: kubectl describe pod <pod-name>
- 查看容器日志: kubectl logs <pod-name> [-c <container-name>]
Failed
失败(Failed):Pod中的所有容器都已终止了,并且至少有一个容器是因为失败终止。即容器以非0状态退出或者被系统禁止。 (容器进程主动退出)
- 集群网络有问题,Pod 连不上集群 DNS 服务
- 集群 DNS 服务挂了,无法响应解析请求
- Service 或域名地址配置有误,本身是无法解析的地址
程序配置有误
- 配置文件格式错误,程序启动解析配置失败报错退出
- 配置内容不符合规范,比如配置中某个字段是必选但没有填写,配置校验不通过,程序报错主动退出
Pod 一直处于 Unknown 状态
通常是节点失联,没有上报状态给 apiserver,到达阀值后 controller-manager 认为节点失联并将其状态置为 Unknown 。
- 节点高负载导致无法上报
- 节点宕机
- 节点被关机
- 网络不通
Pod 一直处于 Error 状态
通常处于 Error 状态说明 Pod 启动过程中发生了错误。常见的原因包括:
- 依赖的 ConfigMap、Secret 或者 PV 等不存在
- 请求的资源超过了管理员设置的限制,比如超过了 LimitRange 等
- 违反集群的安全策略,比如违反了 PodSecurityPolicy 等
- 容器无权操作集群内的资源,比如开启 RBAC 后,需要为 ServiceAccount 配置角色绑定
边栏推荐
- Goby full port scan
- 疯狂的数字藏品,下一个造富神话?
- Interview high concurrent, cool!! (high energy in the whole process, collection recommended)
- [document translation] camouflaged object detection
- STM32 watchdog study
- Introduction to esp8266: three programming methods "suggestions collection"
- Follow me study hcie big data mining Chapter 1 Introduction to data mining module 1
- MySQL数据库:使用show profile命令分析性能
- 节点数据采集和标签信息的远程洪泛传输
- ANSVC无功补偿装置在河北某购物广场中的应用
猜你喜欢

留给比亚迪的时间还有三年

Discard Tkinter! Simple configuration to quickly generate cool GUI!

Thinkpad VMware 安装虚拟机出现此主机支持 Intel VT-x,但 Intel VT-x 处于禁用状态(问题解决方法)

Wechat applet: repair collection interface version cloud development expression package
Redis fragment cluster setup and use tutorial

ANSVC无功补偿装置在河北某购物广场中的应用

微信小程序:图片秒加水印制作生成

嵌入式开发:硬件在环测试

纳人才,谋发展 | 人大金仓喜获“最佳雇主校招案例奖”

逆向调试入门-PE文件节表与区块03/07
随机推荐
win11怎么看cpu几核几线程? win11查看cpu是几核几线程的教程
微信小程序:大红喜庆版UI猜灯谜又叫猜字谜
Five years after graduation, I asked all the leaders around me and summarized their learning methods
微信小程序:云开发表白墙微信小程序源码下载免服务器和域名支持流量主收益
Installation and removal of cover for CPU protection on desktop motherboard
Appkey when applying for offline packaging of uniapp
Applet Wechat: un nouveau réseau exclusif de microgroupes de développement de Cloud
tcpdump如何对特定的tcp标志位进行过滤
微信小程序:修复采集接口版云开发表情包
Intuition and Implementation: batch normalization
微信小程序:全新獨家雲開發微群人脈
28000 word summary of callable and future interview knowledge points. After reading it, I went directly to ByteDance. Forgive me for being a little floating (Part 2)
微信小程序:全新独家云开发微群人脉
投资人跌下神坛:半年0出手,转行送外卖
Summary of binary tree exercises
Tiktok's global short video dominance may be reversed by YouTube
[high concurrency] 28000 words' summary of callable and future interview knowledge points. After reading it, I went directly to ByteDance. Forgive me for being a little drifting (Part 1)
Mondo rescue creates an image file (which is conducive to image damage recovery)
golang代码规范整理
Game development of contract quantitative trading system (ready-made case analysis)