Day 32 Task: Launching your Kubernetes Cluster with Deployment
#90daysofdevopschallenge
π What is Deployment in k8s
A Deployment provides a configuration for updates for Pods and ReplicaSets.
You describe a desired state in a Deployment, and the Deployment Controller changes the actual state to the desired state at a controlled rate. You can define Deployments to create new replicas for scaling or to remove existing Deployments and adopt all their resources with new Deployments.
π Task 1: Create one Deployment file to deploy a sample todo-app on K8s using "Auto-healing" and "Auto-Scaling" feature
Create the deployment file
Apply the deployment file - kubectl apply -f deployment.yml
Get the pod status
Now try auto-healing so delete one pod
now it automatically creates one new pod and the previous one terminates
Thank You
Β