Red Hat Training
A Red Hat training course is available for OpenShift Container Platform
39.7.3.2. 您的路由是否正确?
使用 ip route 检查路由表:
# ip route default via 192.168.122.1 dev ens3 10.128.0.0/14 dev tun0 proto kernel scope link # This sends all pod traffic into OVS 10.128.2.0/23 dev tun0 proto kernel scope link src 10.128.2.1 # This is traffic going to local pods, overriding the above 169.254.0.0/16 dev ens3 scope link metric 1002 # This is for Zeroconf (may not be present) 172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.42.1 # Docker's private IPs... used only by things directly configured by docker; not OpenShift 192.168.122.0/24 dev ens3 proto kernel scope link src 192.168.122.46 # The physical interface on the local subnet
您应该看到 10.128.x.x 行(假设您将 pod 网络设置为配置中的默认范围)。如果没有,请检查 OpenShift Container Platform 日志(请参阅 第 39.10 节 “读取日志” 部分)