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.
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 withpgreporps. In most containers the app is PID 1./proc/<pid>/rootis the target container's filesystem. The shell helpertroot <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.