Container Probes — Liveness, Readiness, Startup
Kubernetes has three probe types (liveness, readiness, startup) and three probe mechanisms (httpGet, tcpSocket, exec). Understanding which probe causes which kubelet action — container restart vs EndpointSlice removal — and when to use startupProbe for slow-starting JVM/Python apps is essential for zero-downtime operations.
Overview
Overview
Container probes are how Kubernetes decides whether a container is healthy, ready to serve traffic, or still starting up. Each probe type maps to a distinct kubelet action, and the three work in a fixed order. The startupProbe runs first and gates the others until the app starts. Once it passes, the livenessProbe and the readinessProbe both begin. A liveness failure leads to a container restart; a readiness failure removes the pod from the EndpointSlice.
Key concepts
- livenessProbe
- readinessProbe
- startupProbe
- EndpointSlice removal
- Probe fields: failureThreshold and periodSeconds
Sign up free to read the full topic
More DevOps topics
- CMake for Cross-Platform C++
- CNCF Landscape & Cloud Native Ecosystem
- Configuration Drift
- Container Errors — OOMKilled, Exit Codes, Probes and Stale Images
- Container Fundamentals
- Container Image Hardening
- Container Runtime Security
- containerd and Container Runtimes
- Continuous Delivery vs Deployment
- Continuous Integration
- Control Plane Errors — API Server, RBAC, Webhooks, Quotas and Finalizers
- Cost-Optimized CI Runner Fleet
Start free on Cariara · Coding problems · System design studio