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.2.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kmux.py-0.2.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file kmux.py-0.2.0.tar.gz.

File metadata

  • Download URL: kmux.py-0.2.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.10

File hashes

Hashes for kmux.py-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7ece624e608b7d6ddcbc3b4e85f52821d039e085b1c87cd2791cd1e4699a084a
MD5 81001828f3ff8683ea55ee2c414bc146
BLAKE2b-256 ddb7eecd94bf7e631159338689f4372896604ee6d6117a02d6fb1b478aa4e620

See more details on using hashes here.

File details

Details for the file kmux.py-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: kmux.py-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.10

File hashes

Hashes for kmux.py-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a3ca8a8e2b8e3ef24a6fe5be5d8e3eb2673afa29ddcaa75d3624d21fa45b9968
MD5 264550e260279f73c19ce5394015e03d
BLAKE2b-256 f8b963a0f454516c9fc80401aa9577a71468b2dc350b8308872dfcd6a0d3c594

See more details on using hashes here.

Supported by

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