Deploying a new application version
In the previous chapter, we deployed an application using the nginx v1.18.0
Docker image. In this section, let's update it to nginx v1.19.0
:
To update the nginx
Docker image tag, run the following command:
$ kubectl set image deployment nginx nginx=nginx:1.19.0 \ --record deployment.apps/nginx image updated $ kubectl rollout status deployment nginx deployment "nginx" successfully rolled out $ kubectl get deployment nginx NAME    READY   UP-TO-DATE   AVAILABLE   AGE nginx   3/3     3            3           5d19h $ kubectl get pods NAME                    READY   STATUS    RESTARTS...