# README
应用负载
关于临时容器
临时容器 使用 client-go 实现 kubectl debug 命令 Kubectl Debug源码
关于Hold Pod
要让Kubernetes Pod保持运行状态而不退出,可以采取以下几种方法:
- 使用无限循环:在容器中运行一个无限循环的进程,例如使用while true命令。这样,Pod将一直运行,直到手动终止。
- 使用sleep命令:在容器中运行一个sleep命令,例如sleep infinity。这将使容器进入休眠状态,但Pod仍然处于运行状态。
- 使用sidecar容器:在Pod中添加一个额外的sidecar容器,该容器可以保持运行状态并监控主容器。如果主容器退出,sidecar容器可以重新启动它。
- 使用init容器:在Pod中添加一个init容器,该容器可以在主容器启动之前运行,并保持运行状态。这样,即使主容器退出,Pod仍然可以保持运行状态。
需要注意的是,Kubernetes会自动重新启动失败的Pod,因此如果Pod退出,Kubernetes将尝试重新启动它。如果您希望Pod保持运行状态而不被重新启动,可以使用上述方法之一。
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
注入Job注解.
注入Job标签.
把configmap注入到Pod中 挂载成卷使用.
No description provided by the author
把secret注入到Pod中 挂载成卷使用.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CronJob.
DaemonSet.
Deployment无状态部署.
Job.
StatefulSet.
正常.
异常.
未处理.
处理中.
# Variables
Enum value maps for WORKLOAD_KIND.
Enum value maps for WORKLOAD_KIND.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author