$ kubectl get pods -l app=busyboxes -o wide NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES busyboxes-745dfc7df-4kqc2 1/1 Running 0 53m 10.34.0.6 do-k8s-01-node01 <none> <none> busyboxes-745dfc7df-75s5x 1/1 Running 0 53m 10.40.0.8 do-k8s-01-node03 <none> <none> busyboxes-745dfc7df-cbwvt 1/1 Running 0 53m 10.38.0.7 do-k8s-01-node02 <none> <none> busyboxes-745dfc7df-nzw5l 1/1 Running 0 53m 10.40.0.9 do-k8s-01-node03 <none> <none> busyboxes-745dfc7df-rv4sh 1/1 Running 0 53m 10.38.0.10 do-k8s-01-node02 <none> <none> busyboxes-745dfc7df-zsgcr 1/1 Running 0 53m 10.40.0.10 do-k8s-01-node03 <none> <none> $ kubectl exec --stdin --tty busyboxes-745dfc7df-75s5x -- sh / # traceroute 10.38.0.1 traceroute to 10.38.0.1 (10.38.0.1), 30 hops max, 46 byte packets 1 * * * 2^C / # ip r default via 10.40.0.0 dev eth0 10.32.0.0/12 dev eth0 scope link src 10.40.0.8 / # ping 10.40.0.0 PING 10.40.0.0 (10.40.0.0): 56 data bytes 64 bytes from 10.40.0.0: seq=0 ttl=64 time=0.267 ms ^C --- 10.40.0.0 ping statistics --- 5 packets transmitted, 5 packets received, 0% packet loss round-trip min/avg/max = 0.091/0.138/0.267 ms / # traceroute -n -w 1 10.96.0.1 traceroute to 10.96.0.1 (10.96.0.1), 30 hops max, 46 byte packets 1 10.40.0.0 0.029 ms 0.005 ms 0.004 ms 2 * * * 4^C / # traceroute -n -w 1 10.40.0.9 traceroute to 10.40.0.9 (10.40.0.9), 30 hops max, 46 byte packets 1 * * * 3^C
Обсуждают сегодня