Pod 的健康檢查方式 Part-2
Readiness 功能
# 以下僅是配置示意範本
spec:
containers:
- image: k8s.gcr.io/echoserver:1.10
readinessProbe:
httpGet:
path: /healthy
port: 8080
initialDelaySeconds: 1
periodSeconds: 10
timeoutSeconds: 1
failureThreshold: 3配置說明
HTTP 應用中進行 httpGet 檢查,有其他配置選項:
Last updated