I'm trying to investigate a network issue and would like to install tcpdump / tshark.
What package manager does minikube use? How can I install tcpdump?
It is not an easy task.
Minikube VM is based on Buildroot distribution.
Usually minikube uses docker to build a buildroot image, but you can clone buildroot repo and configure it to include tcpdump package using specific targets (make iso-minikube, make iso-menuconfig).
Then you need to build a minikube image and run minikube using that image.
The manual is not full, but gives you the main idea of what to do.
Alternatively you may try to copy tcpdump
and all its dependencies to minikube VM using scp
.
I would run a container with my favorite os and use host network then install tcpdump inside the container
minikube$docker run --network host -it ubuntu
ubuntu#apt update && apt install tcpdump
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With