# Eventuell, wenn bash-completion nicht installiert ist.
apt install bash-completion
source /usr/share/bash-completion/bash_completion
# is it installed properly
type _init_completion
# activate for all users
kubectl completion bash | sudo tee /etc/bash_completion.d/kubectl > /dev/null
# verifizieren - neue login shell
su -
# zum Testen
kubectl g<TAB>
kubectl get
source <(kubectl completion bash)
complete -F __start_kubectl k