当前位置:网站首页>根因解析 | Kubernetes Pod状态异常九大场景盘点
根因解析 | Kubernetes Pod状态异常九大场景盘点
2022-06-21 07:08:00 【富士康质检员张全蛋】
Kubernetes Pod 作为 Kubernetes 核心资源对象,不仅 Service、Controller、Workload 都是围绕它展开工作。作为最小调度单元的它,还担任着传统 IT 环境主机的职责,包含了调度,网络,存储,安全等能力。
正是因为 Pod 具有复杂的生命周期和依赖,绝大多数 Kubernetes 问题最终都会在 Pod 上表现出来。因此,我们介绍在实际工作实践中会遇到的 9 种典型场景,以及如何使用 Kubernetes 监控来处理这些场景,快速定位发现问题。

容器是用户进程,Pod 就像是机器,所以调度,网络,存储,安全等机器级别的异常以及进程运行的异常都会在 Pod 上面体现出来。围绕着 Pod 来说,有以下几个关键的点非常容易出现问题:
调度
镜像拉取
磁盘挂载
Liveless/Readiness probe
postStart/preStop handler
配置
运行时
那么,接下来我们来盘点一下相关常见的问题场景。
问题场景 1:就绪失败,即 Pod 一直无法到达 Ready 状态,无法接收请求进行业务处理。

常见的根因如下:
资源不足,无法调度(Pending),即集群的 Node 没有预留资源能够满足 Pod 的 Request 资源;
镜像拉取失败( ImagePullBackoff ),镜像的仓库地址,tag 出现问题;
磁盘挂载失败(Pending),容器挂载的 PVC 没有 bound;
Liveless probe 探针失败,频繁重启;
Readiness probe 探针失败,无法达到 Ready 状态;
postStart 执行失败,一直无法进入运行状态;
运行时程序崩溃( CrashLoopBackOff ),频繁重启;
配置错误,比如挂载的 Volume 不存在(RunContainerError)。
边栏推荐
- Argo CD 使用
- Lnc2meth: methylation sites on disease-related lncrna
- Tweenmax irregular geometry background with animation JS effect
- 缺失数据填补数据集介绍(2)——多种数据集介绍及数据集预处理(mushroom、news、spam、wine-red和yeast)
- Summary of each layer of the five layer reference model
- Wechat applet_ 3. Wxml template syntax
- Kubernetes cluster setup detailed tutorial
- Markdown mathematical grammar [detailed summary]
- 建设数字化工厂的四个必要步骤
- Hub, switch, router
猜你喜欢

Eigen common operations

ADEX governance voting: pledge reward halved

The database has the problem of user changing password

Do you know all the extension racks of ThinkPHP?

微信小程序_5,全局配置

Wechat applet_ 3. Wxml template syntax

【osg】osg开发(02)—基于MinGW编译构建osgQt库

天气预报小程序源码/天气类微信小程序源码

flutter jpush

Candy tunnel JS special effect code
随机推荐
(programming exercises of various regular numbers) the prime number in the output range, the factorization prime factor of an integer, the maximum common divisor and minimum common multiple of two num
[GNN] Application of GNN neural network toolbox and MATLAB simulation
2022年大学英语六级6月翻译
155 Solana storage array
Introduction to exceptions
I2C驱动实现的两种思路(i2c-dev.c和i2c-core.c)
js操作Cookie,js设置Cookie值,js读取Cookie值
Pyg tutorial (4): Customizing datasets
GEO2R:对GEO数据库中的数据进行差异分析
Modbus poll v9.9.2 build 1690 MODBUS test tool single file version
153 Solana create PDA and storage
Analysis of source code encryption products
lombok之@NonNull注解
C language program design - Sanzi chess (semester homework)
Eigen 常用操作
从 Stream 到 Kotlin 再到 SPL
How to select PostgreSQL and MySQL
數據分析之:不同行業的常見指標
IDM mobile terminal function upgrade description
0-1 knapsack problem (violent recursion / dynamic programming)