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

Uploaded Source

Built Distribution

kmux.py-0.1.10-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kmux.py-0.1.10.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5

File hashes

Hashes for kmux.py-0.1.10.tar.gz
Algorithm Hash digest
SHA256 00ee65b9221bc1b7558ca6e08d8432a21b139732009a0a44bd30c53cf6d5c11f
MD5 7350671da50624a73a3b444834ab4ab1
BLAKE2b-256 c7272818224520571a9af5fd00ae81e420444963670e72804f0fdcbe8d343e4a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kmux.py-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5

File hashes

Hashes for kmux.py-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 26aa5ced5fca01b2649a7cbba3ea90d25f29c26676dbf407e4435519b47a34de
MD5 dea491ad975d7bad7d12e8d543deda3d
BLAKE2b-256 1dd50b37b61b9b319fe450ffda79e4fb1fc3649dda5306edb17beb93630957f8

See more details on using hashes here.

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