请问 kubernetes 中 livenessProbe 与 readinessProbe 这2个健康检查的区别是什么?
在 Kubernetes Liveness and Readiness Probes: How to Avoid Shooting Yourself in the Foot 中找到了答案:
Kubernetes uses liveness probes to know when to restart a container.
Kubernetes uses readiness probes to decide when the container is available for accepting traffic.
livenessProbe 决定是否重启容器,readinessProbe 决定是否将请求转发给容器。