Posts

Showing posts with the label autoscaling

Whats in when we do a Kubernetes Deployments

Kubernetes Deployments ​ Why use a Kubernetes Deployment? A Deployment resource uses a ReplicaSet to manage the pods. However, it handles updating them in a controlled way. Let’s dig deeper into Deployment Controllers and patterns. Your First Deployment Let’s have a quick demonstration of what Kubernetes Deployments can do. The following Deployment definition deploys four pods with Apache as their hosted application: apiVersion : apps/v1 kind : Deployment metadata : name : apache - deployment labels : role : webserver spec : replicas : 4 selector : matchLabels : role : webserver template : metadata : labels : role : webserver spec : containers : - name : frontend image : httpd ports : - containerPort : 80 Copy Save the above in a file. In this example, I named the file apache_deployment.yaml. Apply the definition to the cluster by running th...