gaganyaan2 / kx-kn-rust

Simple kubernetes context and namespace switch in rust
Apache License 2.0
5 stars 0 forks source link
kubernetes rust

kx-kn - Simple kubernetes context and namespace switch

License

Install kx and kn on linux:

curl -s https://raw.githubusercontent.com/koolwithk/kx-kn-rust/main/install.sh | bash

kxkn cli usage

kn                 #show current namespace
kx                 #show current context

kn <namespace>     #switch to other namespace
kx <context>       #switch to other context

Build binary

git clone https://github.com/koolwithk/kx-kn-rust.git
cd kx
cargo build --release

## for statically linked binary
cargo build --target=x86_64-unknown-linux-musl  --release

Why kx and kn in rust?

Refrences: