Change kubectl editor sudo -H nano /etc/environment insert new line: KUBE_EDITOR="nano"