Deployments allow for updating in a few different ways. First, there is the kubectl set command, which allows us to change the deployment configuration without redeploying manually. Currently, it only allows for updating the image, but as new versions of our application or container image are processed, we will need to do this quite often.
Let's take a look using our deployment from the previous section. We should have three replicas running right now. Verify this by running the get pods command with a filter for our deployment:
$ kubectl get pods -l name=node-js-deploy
We should see three pods similar to those listed in the following screenshot:
Take one of the pods listed on our setup, replace ...