Skip to content

reegnz/kubectl-ns-debug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

kubectl ns-debug

Troubleshoot a pod with a bring-your-own debug image.

⚠️ If you have ephemeral containers enabled in your cluster, use kubectl debug instead!

❗ 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

Usage

kubectl ns-debug -n example my-pod

Installation

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

Usage examples

  • debugging java applications running on a JRE
    • kubectl ns-debug --image openjdk:11-jdk -n example java-pod

Releases

No releases published

Packages

No packages published

Languages