Troubleshoot a pod with a bring-your-own debug image.
❗ Running pods with hostPID and hostNetwork are generally discouraged and you need to understand the risks.
❗ Only use this plugin if you understand what it is doing:
- spawning a container with hostPID and hostNetwork on the kubelet node
- having root access to the entire kubelet node
- being able to run anything on the kubelet node
For detailed explanation see EXPLAINED.md
kubectl ns-debug -n example my-pod
Using krew: coming soon
Using curl:
curl -LO https://github.com/reegnz/kubectl-ns-debug/raw/master/kubectl-ns_debug
chmod +x ./kubectl-ns_debug
sudo mv ./kubectl-ns_debug /usr/local/bin/kubectl-ns_debug
- debugging java applications running on a JRE
kubectl ns-debug --image openjdk:11-jdk -n example java-pod