Files
container.training/docs/kubectlscale.md
Jérôme Petazzoni 40eab78186 Improve autotest system
2017-10-25 17:49:30 +02:00

24 lines
512 B
Markdown

# Scaling a deployment
- We will start with an easy one: the `worker` deployment
.exercise[
- Open two new terminals to check what's going on with pods and deployments:
```bash
kubectl get pods -w
kubectl get deployments -w
```
<!-- ```keys ^C``` -->
- Now, create more `worker` replicas:
```bash
kubectl scale deploy/worker --replicas=10
```
]
After a few seconds, the graph in the web UI should show up.
<br/>
(And peak at 10 hashes/second, just like when we were running on a single one.)