Website: having issues when running kubectl edit deployment hello-node. I get the following response: error: there was a problem with the editor "vi"

Created on 16 Jun 2016  路  9Comments  路  Source: kubernetes/website

I wish /docs/hellonode/ I'm having issues when running kubectl edit deployment hello-node. I get the following response: error: there was a problem with the editor "vi". Any idea what could be wrong? Thanks!

Most helpful comment

Setting KUBE_EDITOR="vim" explicitly helped me resolving this issue.

All 9 comments

Hi @dzuluaga , I assume that you manage to create the deployment properly with kubectl ?

If yes, what is our $EDITOR variable. Could be that it is not set properly.
Does vi works normally otherwise.

I just tested this and it works just fine.

I've gotten the same error, vi works normally otherwise. vi is the value of $EDITOR in this case

BTW, changing $EDITOR to nano works; not sure what the issue is with vi+kubernetes

Haven't seen any movement on this issue for 6 months. Closing out.

Setting KUBE_EDITOR="vim" explicitly helped me resolving this issue.

I got the same problem.
Because the system don't the 'vi', only have a alias for "alias vi='vim'" but does not work. And install the vi to fix.

KUBE_EDITOR="vim"

how to set KUBE_EDITOR="vim"?

@soheilade

echo 'KUBE_EDITOR="vim"' >> ~/.bash_profile
source ~/.bash_profile

Setting KUBE_EDITOR="vim" explicitly helped me resolving this issue.

This helped me also, thanks! Perhaps because vi is a symlink for vim on my Mac laptop.

ls -l /usr/bin/vi
lrwxr-xr-x  1 root  wheel  3 Mar 22  2019 /usr/bin/vi -> vim
Was this page helpful?
0 / 5 - 0 ratings