Handbooks / Kubernetes / Chapter 6
Scaling and Health
7 pages · ~5 min✓ Reviewed
Builds on Storage. Next up: Scheduling: Taints, Tolerations and Affinity.
Probes and Resources: The Mental Model
1. Who Decides What
- Probes: kubelet health checks on a container
- Requests and limits: scheduler and kernel contract
- HPA: changes the replica count
- Together: pod is placed, kept alive, sent traffic
2. Probes
| Probe | On failure |
|---|---|
| Liveness | kubelet restarts the container |
| Readiness | removed from Service endpoints, not restarted |
| Startup | holds off liveness and readiness until booted |
httpGet: 2xx/3xx passestcpSocket: port opensexec: exit code 0grpc: gRPC health check- Each probe runs on its own
periodSecondstimer
3. Requests vs Limits
| Effect | |
|---|---|
| Requests | scheduler reserves them when placing the pod |
| Limits |