Scaling up an application
In the previous section, we deployed an application with one replica; let's scale its deployment to two replicas.
The use case of running multiple replicas is to enable high availability for an application. To scale our deployment, run the following commands:
$ kubectl scale deployment nginx –replicas=2 deployment.apps/nginx scaled $ kubectl get deployment nginx NAME    READY   UP-TO-DATE   AVAILABLE   AGE nginx   2/2     2            2           5d17h $ kubectl get pods NAME                    READY   STATUS    RESTARTS   AGE nginx-7df9c6ff5-chnrk   1/1 ...