Scaling

The scale command works the same way as it did in our Replication Controller. To scale up, we simply use the deployment name and specify the new number of replicas, as shown here:

$ kubectl scale deployment node-js-deploy --replicas 3

If all goes well, we'll simply see a message about the deployment being scaled on the output of our terminal window. We can check the number of running pods using the get pods command from earlier, once more.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.145.150