Skip to content

Corei13/shortk8s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages