Master key concepts with interactive flashcards
What is the difference between a Deployment and a StatefulSet?
Click to reveal answer
Deployment: stateless workloads, pods are interchangeable, random pod names (e.g., app-xk2b9). StatefulSet: stateful workloads, pods have stable identities and ordered names (pod-0, pod-1, pod-2), stable network identities via headless Service, ordered startup/shutdown. Use StatefulSet for databases, message queues, and apps requiring persistent storage with stable identity.
Click to show question