#包含命令工具
ifconfig
ping
curl
nslookup
iperf3
mysql-client
#K8S环境使用命令
kubectl run -it busybox --rm --image=llody/busybox-tools:v20240409 --restart=Never /bin/sh
[root@node1 ~]#kubectl run -it busybox1 --rm --image=llody/busybox-tools:v20240409 --restart=Never --port=5201 /bin/sh
/ # ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1440
inet 10.244.104.180 netmask 255.255.255.255 broadcast 0.0.0.0
ether 3a:46:ec:2d:34:dd txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
loop txqueuelen 1000 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
/ # iperf3 -s
-----------------------------------------------------------
Server listening on 5201 (test #1)
-----------------------------------------------------------
iperf3: error - unable to receive cookie at server:
-----------------------------------------------------------
Server listening on 5201 (test #2)
-----------------------------------------------------------
Accepted connection from 10.244.104.182, port 42742
[ 5] local 10.244.104.180 port 5201 connected to 10.244.104.182 port 42744
[ ID] Interval Transfer Bitrate
[ 5] 0.00-1.00 sec 1.55 GBytes 13.3 Gbits/sec
[ 5] 1.00-2.00 sec 1.55 GBytes 13.3 Gbits/sec
[ 5] 2.00-3.00 sec 1.57 GBytes 13.5 Gbits/sec
[ 5] 3.00-4.00 sec 1.73 GBytes 14.8 Gbits/sec
[ 5] 4.00-5.00 sec 1.73 GBytes 14.8 Gbits/sec
[ 5] 5.00-6.00 sec 1.74 GBytes 15.0 Gbits/sec
[ 5] 6.00-7.00 sec 1.79 GBytes 15.4 Gbits/sec
[ 5] 7.00-8.00 sec 1.83 GBytes 15.7 Gbits/sec
[ 5] 8.00-9.00 sec 1.79 GBytes 15.4 Gbits/sec
[ 5] 9.00-10.00 sec 1.56 GBytes 13.4 Gbits/sec
[ 5] 10.00-10.00 sec 512 KBytes 4.78 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate
[ 5] 0.00-10.00 sec 16.8 GBytes 14.5 Gbits/sec receiver
-----------------------------------------------------------
Server listening on 5201 (test #4)
-----------------------------------------------------------
[root@node1 ~]#kubectl run -it busybox2 --rm --image=llody/busybox-tools:v20240409 --restart=Never /bin/sh
/ # iperf3 -c 10.244.104.180
Connecting to host 10.244.104.180, port 5201
[ 5] local 10.244.104.182 port 42744 connected to 10.244.104.180 port 5201
[ ID] Interval Transfer Bitrate Retr Cwnd
[ 5] 0.00-1.00 sec 1.56 GBytes 13.3 Gbits/sec 516 1.11 MBytes
[ 5] 1.00-2.00 sec 1.55 GBytes 13.3 Gbits/sec 0 1.11 MBytes
[ 5] 2.00-3.00 sec 1.54 GBytes 13.2 Gbits/sec 0 1.11 MBytes
[ 5] 3.00-4.00 sec 1.72 GBytes 14.8 Gbits/sec 159 1.11 MBytes
[ 5] 4.00-5.00 sec 1.72 GBytes 14.8 Gbits/sec 370 1.12 MBytes
[ 5] 5.00-6.00 sec 1.74 GBytes 15.0 Gbits/sec 0 1.12 MBytes
[ 5] 6.00-7.00 sec 1.79 GBytes 15.4 Gbits/sec 0 1.12 MBytes
[ 5] 7.00-8.00 sec 1.83 GBytes 15.7 Gbits/sec 0 1.12 MBytes
[ 5] 8.00-9.00 sec 1.79 GBytes 15.4 Gbits/sec 0 1.12 MBytes
[ 5] 9.00-10.00 sec 1.55 GBytes 13.3 Gbits/sec 0 1.12 MBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-10.00 sec 16.8 GBytes 14.5 Gbits/sec 1045 sender
[ 5] 0.00-10.00 sec 16.8 GBytes 14.5 Gbits/sec receiver
iperf Done.
/ #
Content type
Image
Digest
sha256:143a8ad8d…
Size
29.1 MB
Last updated
over 2 years ago
docker pull llody/busybox-tools:v20240507