Powerline Segment for Kubernetes
Project description
☸️ powerk8s: Powerline Plugin for Kubernetes ☸️
This simple plugin is designed to show the Kubernetes cluster configured
for the current context in $KUBECONFIG
.
This work is inspired by so0k/powerline-kubernetes, and intends to be a drop-in replacement as well as an improvement upon the original work.
Installation
$ pip3 install powerk8s
Configuration
Just like with so0k/powerline-kubernetes, you'll need a few things to get going:
-
Colorschemes
~/.config/powerline/colorschemes/default.json
:{ "groups": { "kubernetes_cluster": { "fg": "gray10", "bg": "darkestblue", "attrs": [] }, "kubernetes_cluster:alert": { "fg": "gray10", "bg": "darkestred", "attrs": [] }, "kubernetes_namespace": { "fg": "gray10", "bg": "darkestblue", "attrs": [] }, "kubernetes_namespace:alert": { "fg": "gray10", "bg": "darkred", "attrs": [] }, "kubernetes:divider": { "fg": "gray4", "bg": "darkestblue", "attrs": [] }, } }
-
powerk8s
invocation (& arguments)Here is a good starting point.
~/.config/powerline/themes/shell/default.json
:{ "function": "powerline_kubernetes.kubernetes", "priority": 30, "args": { "show_kube_logo": true, "show_cluster": true, "show_namespace": true, "show_default_namespace": false, "alerts": [ "live", "cluster:live" ] } }
This will add the segment to the shell. Alternatively, placing this in
~/.config/powerline/colorschemes/default.json
will make it show up in the Tmux status line.
Authors
License
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 powerk8s-0.8.0.tar.gz
.
File metadata
- Download URL: powerk8s-0.8.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.11.3 Linux/5.15.0-1035-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8811e063c60828944e19f9da0cb7d2e6ef50c583206d2f4287077af9f36093de |
|
MD5 | 126b4ef0f0c810476902034e918efaf1 |
|
BLAKE2b-256 | b6069d0046a263bfdfafcf9966a1db746b238563131f871524f4812a03b4d175 |
File details
Details for the file powerk8s-0.8.0-py3-none-any.whl
.
File metadata
- Download URL: powerk8s-0.8.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.11.3 Linux/5.15.0-1035-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c104dfcaf1ad766f847915153de597b6c639d26d231dd047a5d4d30bd1015431 |
|
MD5 | dc458c8b7dc80eb8fe755b060eda1361 |
|
BLAKE2b-256 | 4a1b041c99c4ca3dfb409dbf2403a099a26a0fb7e57b7612848a81248225e4c7 |