kubefunc icon indicating copy to clipboard operation
kubefunc copied to clipboard

Plugin debug-shell its not working

Open rafilkmp3 opened this issue 3 years ago • 1 comments

kubectl debug-shell
error: --rm should only be used for attached containers
See 'kubectl run -h' for help and examples

rafilkmp3 avatar Apr 29 '21 12:04 rafilkmp3

@rafilkmp3 Try this:

kubectl debug ${NAME_OF_A_RUNNING_POD} -it --image=alpine:latest --namespace ${POD_NAMESPACE}

Not stated in the docs but the cluster must have support for ephemeral containers.

davidjeddy avatar Feb 08 '22 13:02 davidjeddy