Score:-1

Common image to debug Kubernetes

cn flag

I am looking for a common container image which I can use to debug things in Kubernetes.

busybox does not work, since it has a bug with nslookup.

alpine does not contain curl.

ubuntu does not contain curl.

I would like to have some common tools like: nslookup, netstat, dig, curl, traceroute, tcptraceroute, ...

I know that I could apt update; apt install ... but I would like to have an image which is ready to use.

Zareh Kasparian avatar
us flag
nc is a good tool that can be used.itrs not going to cover all your needs be at the same its called swiss army knife.
guettli avatar
cn flag
@ZarehKasparian I guess we are talking about different things here. The tool `nc` is a command line tool. I am searching for a **container image**
Zareh Kasparian avatar
us flag
you are exactly talking about command line tools --> "I would like to have some common tools like: nslookup, netstat, dig, curl, traceroute, tcptraceroute, ". thus I have introuduced you with nc.
Score:1
in flag

The recent koolkit project seems in the spirit of what you are asking for

Score:1
cn flag

Netshoot:

https://github.com/nicolaka/netshoot

Purpose: Docker and Kubernetes network troubleshooting can become complex. With proper understanding of how Docker and Kubernetes networking works and the right set of tools, you can troubleshoot and resolve these networking issues. The netshoot container has a set of powerful networking tshooting tools that can be used to troubleshoot Docker networking issues. Along with these tools come a set of use-cases that show how this container can be used in real-world scenarios.

Score:0
id flag

In your situation, the easiest solution will be to create your custom image. It will be difficult to find an image that will meet your expectations in 100%. A much better solution is to create one image for you that you will use later in the future. As a base image, you can use eg. Alpine.

It is a minimal Docker image based on Alpine Linux with a complete package index and only 5 MB in size!

For this you will add the necessary tools and it's ready - you will have a docker image, which you will later use in testing and debugging Kubernetes.

See also tutorials about Kubernetes debugging:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.