Follow the steps given below to update your Deployment:
1. Let's update the nginx Pods to use the nginx:1.16.1 image instead of the nginx:1.14.2 image
kubectl set image deployment.v1.apps/ubuntu-deployment ubuntu=ubuntu:16.04
Also, change the echo statement in the command
2. See the rollout status, run: kubectl rollout status deployment/ubuntu-deployment
Run kubectl get rs to see that the Deployment updated the Pods by creating a new ReplicaSet and scaling it
up to 3 replicas, as well as scaling down the old ReplicaSet to 0 replicas