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
Create a new file, either from scratch or by copying Sample.kmux.
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.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file kmux.py-0.1.6.tar.gz
.
File metadata
- Download URL: kmux.py-0.1.6.tar.gz
- Upload date:
- Size: 4.1 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | b394b95e7d5f13f35f714692516b0c3dfa7c1fabdaaec85ba0df59e8ca7f8551 |
|
MD5 | 792982df2b3186744cc37ded641e45c1 |
|
BLAKE2b-256 | f3401075274c71038702be298415e2b21f889c737d4d24d44e500b246aa110c2 |
File details
Details for the file kmux.py-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: kmux.py-0.1.6-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | c342cb7a01a88ae277ae0b0b0c4597d4318347a819f1f27de6c1d64ddd40ce19 |
|
MD5 | 21ba5b5f120c40ea0cc494a64a007832 |
|
BLAKE2b-256 | da7e095bb3c08c3c35717202e528ae5508987abae2f464fa8a8edbd206af3774 |