Kubectl tips and tricks

Does anyone alias k=kubectl and have shell autocompletion working?

source <(k completion bash | sed s/kubectl/k/g)

Works on Linux; I remember someone reporting it doesn’t work on OSX, but that was a long time ago, so that may no longer be true.

6 Likes