mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-07-19 21:09:27 +00:00
'keys' does not handle special keys (like ^J) anymore. Instead, we should use `key`, which will pass its entire argument to tmux, without any processing. It is therefore possible to do something like: ```key ^C``` Or ```key Escape``` Most (if not all) calls to special keys have been converted to use 'key' instead of 'keys'. Action ```copypaste``` has been deprecated in favor of three separate actions: ```copy REGEX``` (searches the regex in the active pane, and if found, places it in an internal clipboard) ```paste``` (inserts the content of the clipboard as keystrokes) ```check``` (forces a status check) Also, a 'tmux' command has been added. It allows to do stuff like: ```tmux split-pane -v```
30 lines
566 B
Markdown
30 lines
566 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
|
|
```
|
|
|
|
<!--
|
|
```wait RESTARTS```
|
|
```key ^C```
|
|
```wait AVAILABLE```
|
|
```key ^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.)
|