04 - Rolling Updates and Rollbacks
Q: Inspect the deployment and identify the number of PODs deployed by it Ans: 4 $ kubectl get deploy $ kubectl describe deployment | grep -i Desired Replicas: 4 desired | 4 updated | 4 total | 4 available | 0 unavailable Q: Inspect the deployment and identify the current strategy $ kubectl describe deployment frontend | grep -i StrategyType Ans: StrategyType: RollingUpdate Q: If you were to upgrade the application now what would happen? Ans: PODs are upgraded few at a time Q: Let us try that. Upgrade the application by setting the image on the deployment to `kodekloud/webapp-color:v2`. Do not delete and re-create the deployment. Only set the new image name for the existing deployment. Deployment Name: frontend D...