# Deployments vs. StatefulSets

> When would you use a Deployment versus a StatefulSet in Kubernetes, and what guarantees does a StatefulSet give that a Deployment does not?

Canonical: https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-deployment-vs-statefulset
Last updated: 2026-11-28

Difficulty: Intermediate

## Question

When would you use a Deployment versus a StatefulSet in Kubernetes, and what guarantees does a StatefulSet give that a Deployment does not?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

Deployment, StatefulSet, Stable Network Identity, volumeClaimTemplates, Ordered Rollout

Previous: [Pods](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-pod-definition) · Next: [Service Types](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-service-types) · [All of Kubernetes & Orchestration](https://www.internhack.in/learn/interview/kubernetes-orchestration)

## More Kubernetes & Orchestration questions

- [Ingress & Ingress Controllers](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-ingress-controllers)
- [Labels & Selectors](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-labels-and-selectors)
- [ConfigMaps & Secrets](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-configmaps-and-secrets)
- [Liveness & Readiness Probes](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-liveness-readiness-probes)
- [Horizontal Pod Autoscaler (HPA)](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-hpa-basics)
- [Namespaces](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-namespaces)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [Kubernetes & Orchestration](https://www.internhack.in/learn/interview/kubernetes-orchestration)
