Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1.04 KB

Readme.md

File metadata and controls

42 lines (31 loc) · 1.04 KB

kx-kn - Simple kubernetes context and namespace switch

License

  • kx - switch context between kubernetes
  • kn - switch namespace between kubernetes

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?

  • learn rust
  • small binary size and fast

Refrences: