{"repo":"predatorray/kubectl-tmux-exec","free":true,"listed":false,"github":"https://github.com/predatorray/kubectl-tmux-exec","clone":"git clone https://github.com/predatorray/kubectl-tmux-exec.git","description":"A kubectl plugin for executing commands interactively across multiple pods or containers using tmux","language":"Shell","stars":142,"topics":["kubectl","kubernetes","tmux","krew-plugin","shell"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"kubectl-tmux-exec A kubectl plugin for executing commands interactively across multiple pods or containers using tmux , like csshX or pssh but for Kubernetes . To execute command across all the Nginx containers using bash for example, run: Installation Homebrew Note : This is for Mac users only. 1. Install Homebrew. 2. brew install predatorray/brew/kubectl-tmux-exec Finally, ensure /usr/local/bin/kubectl-tmux exec is in your $PATH . Krew 1. Install Krew by following the user guide. 2. kubectl krew install tmux-exec 3. Install tmux . Manually 1. Download the latest release. 2. Unpack the kubectl-tmux-exec- .tar.gz file and copy all the files to a directory, /usr/local/kubectl-tmux-exec for instance. 3. Add the bin/ directory to your $PATH . For example, add this line to your rc file: export PATH=\"$PATH:/usr/local/kubectl-tmux-exec/bin\" . 4. Install tmux . Usage Make sure you have kubectl ≥ 1.12 ([plugin support]), ideally latest. Otherwise, execute the script directly: kubectl-tmux exec [...ARGS] . Check if the script has been successfully added by: The output should be like If it does not show in the list, check $PATH env again. You can use the command below to get the usage of the script. Options Flag Usage --------------------------------- ------------------------------------------------------------------------------------------------------------------------------------------------------------- -V --version Print the version information -l --selector Selector (label query) ","default_branch":null,"files":null,"tree":[],"storefront":"/r/predatorray","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/predatorray/kubectl-tmux-exec/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}