Kubernetes 101 : Deployment, rollout, rollback and scaling of pods
Creting a deployment:
Deployments handle replicasets and replicasets deal with pods:
Creating the deployment manually:
We could also write the Yaml configuration file for our deployment manually as below:
Then we create our deployment using the below command:
Changing the image version:
Then we can check the status of our deployment using the below command:
To cancel the rollout and get back to the previous version, we use:
Scaling our application:
We can scale our three "nginx" pods up to fifty pods using the below command:
Comments