kubectl
Kube cuddle
tipps & tricks
Set default namespace
How to set the default namespace
This is usefull if you work in a special namespace for many commands/tasks
kubectl config set-context --current --namespace=<namespace>
# Example
kubectl config set-context --current --namespace=nginx
Set default editor
How to set the default editor
If you use the command "kubectl edit" you may not want to use vi as editor, so you can expose your preferred editor with a normal environment variable expose.
expose EDITOR=<your prefered editor>
# Example
expose EDITOR=vim