kvaps/kubectl-node-shell

Error - nsenter: can't execute 'bash': No such file or directory

karlhaworth opened this issue · 1 comments

spawning "nsenter-sbpw85" on "docker-desktop"




nsenter: can't execute 'bash': No such file or directory
pod default/nsenter-sbpw85 terminated (Error)
pod "nsenter-sbpw85" deleted
kvaps commented

bash is specified by default because it exists on most nodes.
If you have no bash on your nodes, you can specify another shell, eg:

kubectl node-shell <node>  -- sh