toscale deployment helloworld-v1 --cpu-percent=50 --min=1 --max=10
deployment &quot;helloworld-v1&quot; autoscaled
</code></pre><pre><code class="language-command" data-lang="command">$ kubectl autoscale deployment helloworld-v2 --cpu-percent=50 --min=1 --max=10
deployment &quot;helloworld-v2&quot; autoscaled
</code></pre><pre><code class="language-command" data-lang="command">$ kubectl get hpa
NAME           REFERENCE                 TARGET  CURRENT  MINPODS  MAXPODS  AGE
Helloworld-v1  Deployment/hellowor