kubectl-node-shell icon indicating copy to clipboard operation
kubectl-node-shell copied to clipboard

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

Open karlhaworth opened this issue 2 years ago • 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

karlhaworth avatar Nov 30 '22 16:11 karlhaworth

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

kvaps avatar Dec 01 '22 08:12 kvaps