Deployments

  1. Create a deployment named hr-app using the image nginx:1.18 with 2 replicas

  2. Scale hr-app deployment to 3 replicas

  3. Update the hr-app image to nginx:1.19

  4. Check the rollout history of hr-app and confirm that the replicas are OK.

  5. Undo the latest rollout and verify that new pods have the old image (nginx:1.18)

  6. Do an update of the deployment with a wrong image nginx:1.91 and check the status.

  7. Return the deployment to working state and verify the image is nginx:1.19.

Last updated

Was this helpful?