Closed hintcnuie closed 4 years ago
in the first step, it says:
kubectl provides a scale subcommand to change the size of an existing deployment. Let's us it to go from our single running instance to 10 instances.
kubectl
scale
$ kubectl scale --replicas=10 deployment hello-world deployment "hello-world" scaled
but it's better to separate the result and command, think about this. it's more clear for the script to be executed and avoid misunderstanding.
$ kubectl scale --replica=10 deployment hello-world
Fixed and merged.
in the first step, it says:
kubectl
provides ascale
subcommand to change the size of an existing deployment. Let's us it to go from our single running instance to 10 instances.but it's better to separate the result and command, think about this. it's more clear for the script to be executed and avoid misunderstanding.