While debugging issues in Kubernetes, there are times when I need to install a pod, exec into it and poke around the cluster. This can be done pretty easily with a command like kubectl run my-shell --rm -i --tty --image ubuntu -- bash
.
However, Ubuntu doesn't come out of the box with even basic tooling like ping
or nmap
. Typically the problems I'm solving are network-related so I end up installing those a lot.
Is there a distribution I can use instead that is basically Ubuntu with commonly used tooling?
apt install -y nmap
in such a script. This way the pacckages have already been installed when you first log in.