container probe
A regular check the kubelet runs against a container, such as an HTTP request or a command, to decide whether it is started, ready or alive.
In more detail
Kubernetes has three kinds: startup, readiness and liveness probes, each answering a different question. A probe can call an HTTP path, open a TCP port or run a command in the container. A probe failure is evidence to investigate, not a diagnosis on its own.
Example
readinessProbe:
httpGet:
path: /
port: 8080Related terms
- readiness probe — A check that decides whether a pod should receive traffic right now; failing it removes the pod from its Service without restarting it.
- liveness probe — A health check that answers only whether a process is alive enough to keep running; if it keeps failing, the orchestrator, such as Kubernetes, restarts it.
- startup probe — A check Kubernetes runs only while a container is starting, holding off the other probes until it passes.
- kubelet — The agent on every Kubernetes node that starts and watches the node's containers and reports back to the API server.
- health check — A regular automated test of whether a program or service is working, such as a request to its health endpoint or a command run inside its container.
Related guides
Taught in
- Probes And Health Checks — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Observability: Timed Drill And Checkpoint — Certified Kubernetes Application Developer (CKAD) Exam Prep
- From Docker To Desired State — Kubernetes: Production-Grade Container Orchestration
- Worker Nodes: kubelet, Runtime, CNI And kube-proxy — Kubernetes: Production-Grade Container Orchestration
- Troubleshooting: describe, Events And A First Smoke Test — Kubernetes: Production-Grade Container Orchestration
- Jobs And CronJobs — Kubernetes: Production-Grade Container Orchestration
- Troubleshooting: Probes, Logs, exec And CrashLoopBackOff — Kubernetes: Production-Grade Container Orchestration
- Troubleshooting: Pending Pod Triage — Kubernetes: Production-Grade Container Orchestration