There is no wait for completion flag in kubectl scale --help.
You
may run the following to check if the replica rollout is completed:
kubectl scale deployment sample1 --replicas 5 && kubectl rollout status deployment/sample1
Example:
kubectl scale deployment sample1 --replicas 5
deployment.apps/sample1 scaled
After scaling check the rollout status, the rollout status will block until the rollout to desired replica count is available:
kubectl rollout status deployment/sample1
Waiting for deployment "sample1" rollout to finish: 0 of 5 updated replicas are available...
Waiting for deployment "sample1" rollout to finish: 1 of 5 updated replicas are available...
Waiting for deployment "sample1" rollout to finish: 3 of 5 updated replicas are available...
Waiting for deployment "sample1" rollout to finish: 4 of 5 updated replicas are available...
deployment "sample1" successfully rolled out
kubectl get deploy
NAME READY UP-TO-DATE AVAILABLE AGE
sample1 5/5 5 5 2m40s