Solutions to practice test - rolling updates and rollback
We have deployed a simple web application. Inspect the PODs and the Services
What is the current color of the web application?
Execute the script at /root/curl-test.sh.
Run the command ‘kubectl describe deployment’ and look at ‘Desired Replicas’
Run the command ‘kubectl describe deployment’ and look for ‘Images’
Run the command ‘kubectl describe deployment’ and look at ‘StrategyType’
If you were to upgrade the application now what would happen?
Run the command ‘kubectl edit deployment frontend’ and modify the required feild
Execute the script at /root/curl-test.sh.
Look at the Max Unavailable value under RollingUpdateStrategy in deployment details
Run the command ‘kubectl edit deployment frontend’ and modify the required field. Make sure to delete the properties of rollingUpdate as well, set at ‘strategy.rollingUpdate’.
Run the command ‘kubectl edit deployment frontend’ and modify the required feild
Execute the script at /root/curl-test.sh.