From the course: Certified Kubernetes Application Developer (CKAD) Cert Prep

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Running applications as deployments

Running applications as deployments

- Let's check how you can run applications as a Deployment. So this is all about scalable applications. So far we've been talking about Pods, and the problem is that an application in a standalone Pod cannot be scaled. The Deployment is a standard resource for running scalable stateless applications, and if you want to run a state full application, StatefulSet should be used. Another way to use applications is DaemonSet. DeamonSet is a modification to a Deployment. It runs one application instance on every cluster node, unless a node taint prevents it from doing so. Now, Deployments do have a couple of useful features. First feature is a ReplicaSet. So how does that work exactly? Well, the ReplicaSet is a separate API resource, and the Deployment triggers a ReplicaSet to scale applications. For automatic application scaling, the HorizontalPodAutoscaler can be used. That's a resource that we'll talk about later. Deployments also offer an updateStrategy, which is a property that allows…

Contents