Kubernetes Workload Design
Workload kind
| Need | Kind |
|---|---|
| Stateless web/API | Deployment |
| Stable identity/storage | StatefulSet |
| One per node | DaemonSet |
| Run to completion | Job / CronJob |
Probes
- liveness: restart if hung
- readiness: gate traffic
- startup: protect slow boot
Resources
Requests schedule, limits cap. Set both -> know your QoS (Guaranteed/Burstable/BestEffort).
Scale & disruption
HPA on a load-tracking signal (often custom/external, not bare CPU) + a PodDisruptionBudget + graceful shutdown (preStop + grace).