-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pod Lifecycle 容器组生命周期 #1
Comments
https://www.qikqiak.com/post/pod-init-container/ 测试网络CNI 了解到
|
kubelet 逻辑 race 困境: 看PR和 Clayton 的解释比较详细,这里做个简单的梳理 kubernetes/kubernetes#102344 kubelet 需要处理什么?
问题在哪?哪里容易 race ?
造成什么结果通常也不会造成太严重的问题,一般是 pod 清理的很慢,或者完全卡住了。
解决方案
基本从以上几点解决问题,缩短 shutdown 时间 |
pos file in https://gist.github.com/pacoxu/77827e3f04c07d2cc75125bd36ab0f5e. This is based on kubernetes 1.27-; after v1.28, the init container can be a sidecar container with the new update of restart policy always. |
学习(读代码)前的理解
1.1. Pod 生命周期
1.2. 推测、猜想
1.3. 创建过程再细化一些(根据经验)
根据之前的排错经验。
1.4. 删除过程
Terminating → Terminated → 清理掉
2. 学习过程
2.1. Deployment 创建 Pod 过程
from https://pdf.us/2019/05/16/3407.html
https://zhuanlan.zhihu.com/p/111241212
Warning Unhealthy 39s (x4 over 100s) kubelet, dce-10-7-177-10 Readiness probe failed: failed to probe: Get "http://127.0.0.1:8012/": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
1.4. 删除过程
Terminating → Terminated → 清理掉
学习过程
2.1. Deployment 创建 Pod 过程
from https://pdf.us/2019/05/16/3407.html
https://zhuanlan.zhihu.com/p/111241212
The text was updated successfully, but these errors were encountered: