Skip to content

Tools

Every utility in the image, grouped by what you are trying to find out. Each section lists the Ubuntu package it comes from, the permissions it needs (see Permissions), and examples written for Kubernetes situations.

Page Tools
HTTP and connectivity curl wget nc ncat socat openssl iperf3 ping tracepath traceroute mtr nmap
DNS dig nslookup drill
Network stack ip ss arping ethtool ifconfig netstat brctl
Packet capture and firewall tcpdump iptables nft ipset conntrack
Processes and system ps pgrep top free vmstat htop lsof fuser pstree pidstat iostat mpstat iotop strace ltrace gdb bpftrace nsenter lsns findmnt dmesg lsmod lspci
Kubernetes and data kubectl stern grpcurl yq jq
Shell and files bash vi nano less file tree unzip xz git ssh gpg python3

Conventions used in the examples

  • <pod>, <ns>, <pid> and similar are placeholders.
  • <pid> means a process ID as seen from the debug container. With --target, the app's processes are visible, so find it with pgrep or ps. In most containers the app is PID 1.
  • /proc/<pid>/root is the target container's filesystem. The shell helper troot <pid> prints that path.
  • "Needs" lines describe the minimum. Where it says nothing special, the default profile is enough.

Tool versions

The four standalone binaries are pinned in the Dockerfile and checksum verified. Everything else is whatever Ubuntu 24.04 ships.

Tool Version
kubectl v1.36.1
yq (mikefarah) v4.47.1
grpcurl 1.9.3
stern 1.33.0

For the exact version of any other tool in a given image tag:

docker run --rm --entrypoint dpkg ghcr.io/ngpayyappilly/k8s-debug:<tag> -l

Not installed, and what to do instead

The image favours tools that work in any pod. Language-specific profilers are not included because they must match the target runtime.

You want Do this
Java thread or heap dumps Use a JDK-based debug image, or kubectl debug --copy-to with the JDK image
Go pprof / delve Expose net/http/pprof and use curl to fetch profiles
perf Not usable from a container without matching kernel tools. Use bpftrace or strace -c
Wireshark GUI Capture with tcpdump, stream the file out, open it locally (recipe)

You can also build your own image on top of this one. See Contributing.