[root@lab2 .kube]# kubectl get pod -o wide
NAME READY STATUS RESTARTS AGE IP NODE
curl-87b54756-rbqzg / Running 41m 10.244.0.5 192.168.43.82
nginx-5dbb4c75cd-8jcpp / Running 45m 10.244.1.4 192.168.43.83
nginx-5dbb4c75cd-bz9j8 / Running 45m 10.244.1.3 192.168.43.83
nginx-5dbb4c75cd-mbqbh / Running 45m 10.244.0.4 192.168.43.82 [root@lab2 .kube]# kubectl exec -it curl-87b54756-rbqzg sh
[ root@curl-87b54756-rbqzg:/ ]$ ping 192.168.43.83
PING 192.168.43.83 (192.168.43.83): data bytes
bytes from 192.168.43.83: seq= ttl= time=7.055 ms
bytes from 192.168.43.83: seq= ttl= time=0.897 ms [root@lab3 .kube]# kubectl exec -it nginx-5dbb4c75cd-bz9j8 sh
/ # ping 10.244.1.4
PING 10.244.1.4 (10.244.1.4): data bytes
bytes from 10.244.1.4: seq= ttl= time=0.601 ms
bytes from 10.244.1.4: seq= ttl= time=0.102 ms
bytes from 10.244.1.4: seq= ttl= time=0.116 ms
^C