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.5.tar.gz (4.0 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.1.5-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kmux.py-0.1.5.tar.gz
  • Upload date:
  • Size: 4.0 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.5.tar.gz
Algorithm Hash digest
SHA256 b3790a8db5d85d9c66dd2a6063cdcb747c2dd9565e21de8b6fff3d16f6f05baf
MD5 ed087334bc225aa87e7559945317d461
BLAKE2b-256 e1eb0a6455e26a791bd70c1919ac78c5c3f5ba4b557d20d5df524b0bf62aa355

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kmux.py-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 4.7 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 dee42ead1512495985f514600bf039a899519a38e20af9a30fb5d6894f47c9df
MD5 9d8f24f7737c8d99eccf4cf4c35458a6
BLAKE2b-256 c254afce53d793288c349d8f0b08f9ff603eb0c05dc8682538352f6876005350

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