17、k8s-pod的生命周期-主容器-容器探测(livenessProbe-存活性探针、readinessProbe就绪性探针)

概念: 上面的两种探针目前均支持三种探测方式: ·Exec命令:在容器内执行一次命令、如果命令执行的退出码为0、则人为程序正常、否则不正常 ........ livenessProbe: exec: command: - cat - /tmp/health ........ 实例 1、创建yaml文
posted @ 2024-07-01 00:11  little小新  阅读(1)  评论(0编辑  收藏  举报