A maximum can be defined with autoscaler. This means that it is no longer possible with kubectl scale to generate more than the maximum number of pods.
example of deployment with name test:
kubectl autoscale deployment test max=3
Further it is with the command
kubectl autoscale deployment test max=10 min=1 --cpu-percent=50
possible that Deployment test scales between one and ten pods depending on CPU utilization.
Please feel free to contact us for any question that is not answered yet.
We are looking forward to get in contact with you!
Hinter Stöck 17
+49 7433 93724 00