我使用 minikube 和 1 个 pod 开发了一款应用程序。我这里使用的是IPVS模式。当我使用 Masq 转发方法时,该应用程序可以运行。但它不适用于路由转发方法。使用路由转发方式时需要配置什么吗?
这里我附上了 Masq 和路由转发方法的 IPVS 列表。
# ipvsadm -Ln
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP 10.96.0.1:443 wlc
-> 147.214.68.51:8443 Masq 1 2 0
TCP 10.96.0.10:53 wlc
-> 172.17.0.2:53 Masq 1 0 0
-> 172.17.0.3:53 Masq 1 0 0
TCP 10.108.116.175:5000 wlc
-> 172.17.0.4:5000 Masq 1 0 0
TCP 127.0.0.1:32673 wlc
-> 172.17.0.4:5000 Masq 1 0 0
TCP 147.214.68.51:32673 wlc
-> 172.17.0.4:5000 Masq 1 0 0
TCP 172.17.0.1:32673 wlc
-> 172.17.0.4:5000 Masq 1 0 0
TCP 10.96.0.10:9153 wlc
-> 172.17.0.2:9153 Masq 1 0 0
-> 172.17.0.3:9153 Masq 1 0 0
UDP 10.96.0.10:53 wlc
-> 172.17.0.2:53 Masq 1 0 0
-> 172.17.0.3:53 Masq 1 0 0
# ipvsadm -Ln
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP 10.96.0.1:443 wlc
-> 147.214.68.51:8443 Route 1 0 0
TCP 10.96.0.10:53 wlc
-> 172.17.0.2:53 Route 1 0 0
-> 172.17.0.3:53 Route 1 0 0
TCP 10.108.116.175:5000 wlc
-> 172.17.0.4:5000 Route 1 0 0
TCP 127.0.0.1:32673 wlc
-> 172.17.0.4:5000 Route 1 0 0
TCP 147.214.68.51:32673 wlc
-> 172.17.0.4:5000 Route 1 3 0
TCP 172.17.0.1:32673 wlc
-> 172.17.0.4:5000 Route 1 0 0
TCP 10.96.0.10:9153 wlc
-> 172.17.0.2:9153 Route 1 0 0
-> 172.17.0.3:9153 Route 1 0 0
UDP 10.96.0.10:53 wlc
-> 172.17.0.2:53 Route 1 0 0
-> 172.17.0.3:53 Route 1 0 0