In this section, instead of modifying the YAML manifest file and resubmitting it, we'll use the kubectl command-line option to scale out the frontend application:
- In the previous section, we executed kubectl get deployment. Here, we'll scale out the azure-vote-front deployment. Now, run kubectl get deployments.
- Run the following command to increase the replica count to 4. You should see a response containing deployment scaled:
kubectl scale deployments/azure-vote-front --replicas 4
- Let's look at kubectl get deployments and kubectl get pods to see the status again. In the following screenshot, we can see that 2 pods are ready for azure-vote-front and that the desired number is 4.
- The kubectl get pods ...