実行中の同一ポッドのインスタンス数を変更する場合は、kubectl scale deploymentコマンドを次のように使用できます。
$ kubectl scale deployment --replicas=3
hello-world
deployment.apps/hello-world scaled
ポッドのインスタンス数が適切にスケーリングされていることを確認できます。
$ kubectl get pods
NAME READY STATUS RESTARTS AGE
hello-world-5f55779987-tswmg 1/1 Running 0 18s
hello-world-5f55779987-v8w5h 1/1 Running 0 26m
hello-world-5f55779987-wd857 1/1 Running 0 18s