readinessProbe: #(就绪探针)来确定容器是否已经就绪可以接受流量
httpGet:
path: /jiaparts-support-api/ver.txt
port: 8080
scheme: HTTP
initialDelaySeconds: 15 #告诉kubelet在第一次执行probe之前要的等待15秒
failureThreshold: 3 #探测成功后,最少连续探测失败多少次才被认定为失败。
periodSeconds: 30 #规定kubelet要每隔30秒执行一次liveness probe
timeoutSeconds: 20 #探测超时时间
livenessProbe: #(存活探针)来确定何时重启容器
httpGet:
path: /jiaparts-support-api/ver.txt
port: 8080
scheme: HTTP
initialDelaySeconds: 15
failureThreshold: 3
periodSeconds: 30
timeoutSeconds: 20
liveness和readiness探针
最新推荐文章于 2025-06-09 09:07:04 发布