Skip to content

A tmux wrapper for managing multiple clusters and incorporating tmuxinator.

License

Notifications You must be signed in to change notification settings

corvofeng/kubemux

Repository files navigation

kubemux

blog-test

A terminal multiplexer wrapper designed for Kubernetes multi-cluster management, with support for both tmux and zellij.

Features

  • 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

Installation

MacOS

bash

brew install corvofeng/tap/kubemux

Linux

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

Quick Start

Kubeconfig Management

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>

tmuxinator Configuration

mkdir ~/.tmuxinator

echo '
name: kubemux
root: "~/"
windows:
  - p1:
    - ls
    - pwd
  - p2:
    - pwd
    - echo "hello world"
  - p3: htop
' > ~/.tmuxinator/kubemux.yml

kubemux -p kubemux

Documentation

Full documentation is available at: https://kubemux.corvo.fun

Blog posts:

Demo

Kubeconfig Management

asciicast

tmuxinator Support

asciicast

zellij Support

asciicast

Contributing

Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.

License

MIT

About

A tmux wrapper for managing multiple clusters and incorporating tmuxinator.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published