| 语义 | 未就绪=摘除流量,不重启容器 |
|---|---|
| 关键参数 | initialDelaySeconds、periodSeconds、failureThreshold、successThreshold |
| 与发布关系 | 就绪失败→不接流量→更新停滞并最终超时 |
| 失败可见 | kubectl get pods 与 Events 中的探针报错 |
就绪探针
就绪探针
readinessProbe:
httpGet: {path: /healthz, port: 8080}
initialDelaySeconds: 5
periodSeconds: 10
failureThreshold: 3就绪探针依赖下游系统时,下游抖动会引发全量摘流:探针只应回答「本实例能否接流量」。