let's practice kubectl short-coding!
Don't waste your time in CKAD by lengthy commands! kuberta helps you to get used to short aliases.
# download binary
$ wget https://github.com/Syuparn/kuberta/releases/download/${version}/kuberta_linux_x86_64.tar.gz
$ tar -xvzf kuberta_linux_x86_64.tar.gz
# or using Go
$ go install github.com/syuparn/kuberta@latestNOTE: kubectl should be installed in advance
kuberta works as a thin wrapper of kubectl. It raises errors if you forget to use short aliases.
$ kuberta get replicasets
ERROR: too long! should be `kubectl get rs`
$ kuberta get rs --namespace foo
ERROR: too long! should be `kubectl get rs -n foo`
# if you use short aliases properly, this works just same as kubectl
$ kuberta get rs -n foo
NAME DESIRED CURRENT READY AGE
nginx-76d6c9b8c 1 1 0 9sTips: add alias k=kuberta to ~/.bashrc so that you can run this command by k (ex: k get po)
# set alias
echo 'alias k=kuberta' >>~/.bashrc
# enable command auto-completion
echo 'complete -o default -F __start_kubectl k' >>~/.bashrc(See Official install guide for details)
kuberta uses many hacks and may have some edge-case bugs. Any contributions are always welcome!