StatefulSet vs Deployment?

IntermediateConceptKubernetes
Answer

A StatefulSet gives stable pod names (db-0, db-1), stable DNS through a headless Service, per-pod PVCs, and ordered rollout. Use it for databases and clustered stateful apps.

All Real-World Interview questions Roadmap: Interview readiness

More on Kubernetes