Skip to content

Latest commit

 

History

History
83 lines (65 loc) · 1005 Bytes

File metadata and controls

83 lines (65 loc) · 1005 Bytes

shortk8s

# kubectl
$ k
# kubectl get
$ kg pod/🔥
# kubectl describe
$ kd pod/🎉
# kubectl logs
$ kl pod/🔥

fire!
fire!
fire!
# kubectl apply -f
$ kf 🚒.yaml
deployment.apps/🧯configured
service/🚒 configured
pod/🔥 unchanged
# kubectl exec -it
$ kx pod/🔥 ls

💣 💥 🧨 🌶 🍜
# list all namespaces
$ kn

default
defaulter
defaultest
heteronormal
comfortably-numb

# select a namespace for subsequent commands
$ kn comfortably-numb
# list all contexts and show current one
$ ktx

one-context
another-one
* the-selected-one
wish-i-was-selected
dont-select-me

# switch to a context
$ ktx dont-select-me

Installation

zsh

curl -s https://raw.githubusercontent.com/Corei13/shortk8s/master/shortk8s.sh >> ~/.zshrc
source ~/.zshrc

bash

curl -s https://raw.githubusercontent.com/Corei13/shortk8s/master/shortk8s.sh >> ~/.bashrc
source ~/.bashrc