8.7 Typical Use Cases: Databases, Kafka, Zookeeper
Right, so you’ve got your stateless web apps happily humming along on Deployments, scaling up and down without a care in the world. But now you need to run the important stuff—the things that remember who they are and where they left off. You need to run a database, a Kafka cluster, or Zookeeper. For these, a Deployment is a disaster waiting to happen. You don’t just need a Pod; you need a specific Pod with a specific identity and access to its specific data. Enter the StatefulSet, the Kubernetes controller that treats your pets like actual pets, not cattle.