You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A kubectl plugin that uses [Tmux](https://github.com/tmux/tmux) to multiplex commands to pods.
@@ -9,12 +9,12 @@ A kubectl plugin that uses [Tmux](https://github.com/tmux/tmux) to multiplex com
9
9
10
10
It is to `kubectl exec` as `csshX` or `pssh` is to `ssh`.
11
11
12
-
Instead of `exec bash` into multiple pod's containers one-at-a-time, like `kubectl exec -it pod{N} /bin/bash`.
12
+
Instead of `exec bash` into multiple pod's containers one-at-a-time, like `kubectl exec pod{N} /bin/bash`.
13
13
14
14
You can now use
15
15
16
16
```sh
17
-
kubectl tmux-exec -it -l app=nginx /bin/bash
17
+
kubectl tmux-exec -l app=nginx /bin/bash
18
18
```
19
19
20
20
# Installation via Homebrew
@@ -68,11 +68,9 @@ The `tmux-exec` is similar to `exec`, except that it requires label selectors wh
68
68
To `bash` into all pod containers that share some common labels, `foo=bar` for instance.
69
69
70
70
```sh
71
-
kubectl tmux-exec -it -l foo=bar /bin/bash
71
+
kubectl tmux-exec -l foo=bar /bin/bash
72
72
```
73
73
74
-
It should be noted that the `-i` / `--stdin` and `-t` / `--tty` options must both be turned on when you are trying to initiate an interactive session. If not, there will not be any errors. Instead, the `tmux` process simply exits because the `exec`-ed command exits due to no inputs.
75
-
76
74
After you have successfully `bash`-ed into your selected containers, a Tmux window is opened actually, where each pane displays the execution result of each pod's container. Your keyboard inputs will be synchronized to all those panes.
77
75
78
76
If you are not familar with Tmux, you can have a look at tmux's man page or online tutorials. Or you can see the cheatsheet below, which will be sufficient I think.
0 commit comments