danisla/kubefunc

Plugin debug-shell its not working

Opened this issue · 1 comments

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

@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.