Get all deployments
kubectl get deployments
Get all pods
kubectl get pods
Scale the deployment
kubectl scale deployment --replicas=4 MY_DEPLOYMENT_NAME
Check the result of the scaling with
kubectl get deployments
kubectl get pods -o wide
Get the deployment events at the end of the output of
kubectl describe deployments/MY_DEPLOYMENT_NAME
To scale down the replicas, execute the scale command again
kubectl scale deployments/MY_DEPLOYMENT_NAME --replicas=2