Skip to content
Middle+8 views

Как Kubernetes понимает, что Pod живой и готов принимать трафик?

Practice

AI answer

These are configured using container probes in the Pod manifest—Kubernetes does not check an application’s health on its own without them. livenessProbe indicates whether the container should be restarted after a failure; readinessProbe determines whether the Pod is ready to receive traffic, and if it fails, Kubernetes removes the Pod from the Service endpoints. For slow startup, you can configure a startupProbe, which defers liveness and readiness checks. Probes can check an HTTP request, a TCP connection, a command, or a gRPC endpoint.