Docker image to use as Kubernetes debug container
$ docker build . -t debug-tools
$ kubectl debug -it $POD_NAME --image=debug-tools:latest --target=$CONTAINER_NAME
apt-get
- set up withapt-transport-https
andca-certificates
curl
,vim
,screen
,tmux
,jq
- common, well known dev utilities.dnsutils
- includesdig
,nslookup
,nsupdate
.iputils-ping
- includesping
.net-tools
- includesarp
,ifconfig
, andnetstat
.tcpdump
,traceroute
,netstat-nat
,netcat
,socat
,telnet
- common networking tools.iproute2
- modern replacement fornet-tools
utils:
Legacy utility | Replacement command | Note |
---|---|---|
ifconfig |
ip addr , ip link |
Address and link configuration |
route |
ip route |
Routing tables |
arp |
ip neigh |
Neighbors |
iptunnel |
ip tunnel |
Tunnels |
nameif , ifrename |
ip link set name |
Rename network interfaces |
ipmaddr |
ip maddr |
Multicast |
netstat |
ss , ip route |
Show various networking statistics |
brctl |
bridge |
Handle bridge addresses and devices |