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.1.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.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kmux.py-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 b8ad597af9d77f1aae284fd699b2f0bf149e12310fd02d9fe83961f03b1010b4
MD5 1259c74fd031991f00a5a5191aafaf35
BLAKE2b-256 b21800456c4b61d247150437d2bdf60f42dc9b4861d18e982449e226eb82da38

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kmux.py-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 6.8 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 485d96ffcc63f2309a211d237d37b7180f1cc6b1b71f52ebf29d3e79dc62e18c
MD5 c81c37cef3fd1b752bae5f191e5758dd
BLAKE2b-256 afddc34331f45b7eb3cb3d73b85783dafe95d46ac7c80d9216c48e5e1b2bae0c

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