Managing specialized workloads
Deployments are the workhorse for stateless applications, but they aren’t a one-size-fits-all solution. Real-world systems involve many kinds of tasks that don’t fit the simple stateless model. What about a database that needs a stable network identity and persistent storage? What about a monitoring agent that must run on every single node in the cluster? Or a data processing task that needs to run once and then terminate? For these scenarios, Kubernetes provides a toolkit of specialized controllers. In this section, we’ll move beyond the basics to cover these essential workloads. You will learn when to use a StatefulSet for applications that remember data, a DaemonSet for node-level services, and Jobs or CronJobs for batch and scheduled tasks.
Stateful applications: StatefulSets (versus Deployments)
Managing stateful applications such as databases in Kubernetes is a common challenge. Can I deploy my MySQL database on Kubernetes...