Skip to main content

Tmux launcher for kubernetes

Project description

kmux

A tmux launcher for Kubernetes that creates one pane per pod, sets the env variables POD, KUBE_CONTEXT, and KUBE_NAMESPACE and runs the commands in the given input file in every pane.

Dependencies

  • Python3.8+

  • smux

  • tmux (any version)

Installation

Run the following command:

pip3 install kmux.py

Usage

  1. Create a new file, either from scratch or by copying Sample.kmux.

  2. Type in the commands that you want to run, likely dependent on the selected POD.:

    ---------
    command1
    command2
    command3

Note that a pane does not necessary need to run any commands.

  1. Run kmux.py <input_file_name>. By default, this will run the commands in the input file against all pods in the current Kubernetes context. You may also specify a target context with the command line option --kube_context. It will exhibit undefined behavior if there is no current context and no context has been specified.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kmux.py-0.1.11.tar.gz (5.4 kB view hashes)

Uploaded Source

Built Distribution

kmux.py-0.1.11-py3-none-any.whl (6.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page