当前位置:网站首页>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 配置角色绑定
边栏推荐
- 节点数据采集和标签信息的远程洪泛传输
- 强大、优秀的文件管理软件评测:图片管理、书籍管理、文献管理
- Tiktok's global short video dominance may be reversed by YouTube
- Introduction to reverse commissioning -pe file section table and block 03/07
- [dark horse morning post] the market value of China public education has evaporated by more than 200billion; New Oriental has more than 20million live fans; HM closes its first store in China; Vanke Y
- Crazy digital collections, the next myth of making wealth?
- Application of ansvc reactive power compensation device in a shopping mall in Hebei
- [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 (middle)
- 微信小程序:大红喜庆版UI猜灯谜又叫猜字谜
- leetcode:226. Flip binary tree
猜你喜欢

Intuition and Implementation: batch normalization

Stable currency risk profile: are usdt and usdc safe?

Wechat applet: new and exclusive cloud development wechat group contacts

OpenSSL certificate tool user manual

Hardware development notes (VIII): basic process of hardware development, making a USB to RS232 module (VII): creating a basic dip component (crystal oscillator) package and associating the principle

丢弃 Tkinter!简单配置快速生成超酷炫 GUI!

Wechat applet: install B artifact and P diagram, modify wechat traffic main applet source code, Download funny joke diagram, make server free domain name

Turbulent intermediary business, restless renters

"Dead" Nokia makes 150billion a year

ANSVC无功补偿装置在河北某购物广场中的应用
随机推荐
【 网络带宽 】MBps & Mbps
一位博士在华为的22年
3d立体相册,情人节,情侣生日礼物代码适用
What is the reason why the gbase8s database encountered a 951 error?
[dark horse morning post] the market value of China public education has evaporated by more than 200billion; New Oriental has more than 20million live fans; HM closes its first store in China; Vanke Y
直觉与实现:Batch Normalization
TikTok全球短视频霸主地位或被YouTube反超
深度学习的坎坷六十年
Thinkpad VMware 安装虚拟机出现此主机支持 Intel VT-x,但 Intel VT-x 处于禁用状态(问题解决方法)
GWD:基于高斯Wasserstein距离的旋转目标检测 | ICML 2021
How goby exports scan results
强大、优秀的文件管理软件评测:图片管理、书籍管理、文献管理
Seekg() [easy to understand]
广州开展瓶装气安全宣传活动,普及燃气安全知识
从Mpx资源构建优化看splitChunks代码分割
节点数据采集和标签信息的远程洪泛传输
Which is better and safer for Dongguan Humen securities company to open a stock account?
Detailed explanation of machine learning out of fold prediction | using out of fold prediction oof to evaluate the generalization performance of models and build integrated models
台式机主板上保护cpu的盖子安装和拆卸
微信小程序:全新獨家雲開發微群人脈