A terminal multiplexer wrapper designed for Kubernetes multi-cluster management, with support for both tmux and zellij.
- Multi-Cluster Management: Easily switch between different Kubernetes clusters
- Terminal Multiplexer Support: Works with both tmux and zellij
- tmuxinator Compatible: Supports existing tmuxinator configurations
- Zero Dependencies: Standalone binary with no external dependencies
- Shell Completion: Built-in completion for bash and zsh
- Jump Host Support: Seamlessly work with clusters behind jump hosts
bash
brew install corvofeng/tap/kubemux
Using https://github.com/marcosnils/bin:
bin install https://github.com/corvofeng/kubemux ~/usr/bin
Using binary:
cd /tmp
wget https://github.com/corvofeng/kubemux/releases/latest/download/kubemux_linux_amd64.tar.gz
tar -zxvf kubemux_linux_amd64.tar.gz
sudo install -v kubemux /usr/local/bin
ls ~/.kube
# pve-kube.config xxx
kubemux kube --kube pve-kube.config
# I suggest you add the completion support
# source <(kubemux completion bash)
# source <(kubemux completion zsh)
# or you can add the command into the .bashrc or .zshrc.
kubemux kube --kube <tab>
mkdir ~/.tmuxinator
echo '
name: kubemux
root: "~/"
windows:
- p1:
- ls
- pwd
- p2:
- pwd
- echo "hello world"
- p3: htop
' > ~/.tmuxinator/kubemux.yml
kubemux -p kubemux
Full documentation is available at: https://kubemux.corvo.fun
Blog posts:
- 英文版: https://corvo.fun/2023/12/27/2023-12-26-kubemux%E7%9A%84%E5%BC%80%E5%8F%91%E4%B8%8E%E4%BD%BF%E7%94%A8/
- 中文版: https://corvo.myseu.cn/2023/12/27/2023-12-26-kubemux%E7%9A%84%E5%BC%80%E5%8F%91%E4%B8%8E%E4%BD%BF%E7%94%A8/
Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.