tezvyn:

Describe the difference between a Deployment and a StatefulSet

Source: kubernetes.iointermediate

Tests stateful pod identity versus stateless scaling. Outline: contrast Deployments' interchangeable replicas with StatefulSets' stable hostnames, per-pod PVCs, and ordered rollout; give a database example.

WHAT IT TESTS: when workloads need stable network identity, per-pod persistent storage, and ordered lifecycle management versus stateless fungibility. ANSWER OUTLINE: first, note Deployments create interchangeable pods with random names and no fixed storage, ideal for stateless apps; second, describe StatefulSets' ordinal hostnames, individual PVCs, and sequential rollout; third, name a system like Cassandra or Kafka and justify why node identity and data locality matter.

Read the original → kubernetes.io

Get five bites like this every day.

Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.

Describe the difference between a Deployment and a StatefulSet · Tezvyn