针对 Kubernetes 容器网络的问题分析和排查,经常需要查看路由表。本文主要是分析 route 命令输出各项参数的含义,及其中经常出现的 0.0.0.0 的含义。 路由表 在容器网络为 Calico 的 kubernetes 集群机器上执行route -n命令输出如下: 1 2 3 4 5 6 7 8 9 [root@node03 ~]# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.161.16.200 0.0.0.0 UG 100 0 0 eth0 10.161.16.0 0.0.0.0 255.255.255.0 U 100 0 0 eth0 10.244.113.128 10.161.16.194 255.255.255.192 UG 0 0 0 tunl0 10.244.186.192 0.0.0.0 255.255.255.192 U 0 0 0 * 10.244.186.193……

阅读全文