Skip to content

gaganyaan2/kx-kn-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: