kubectl edit configmap -n kube-system
mode: "ipvs"
查看ipvs规则
ipvsadm -Ln
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP 127.0.0.1:31019 rr
-> 10.175.43.3:443 Masq 1 0 0
TCP 172.17.0.1:31019 rr
-> 10.175.43.3:443 Masq 1 0 0
TCP 172.18.0.1:30378 rr
-> 10.175.30.20:8080 Masq 1 0 0
-> 10.175.43.1:8080 Masq 1 0 0
-> 10.175.43.2:8080 Masq 1 0 0
TCP 172.18.0.1:31019 rr
-> 10.175.43.3:443 Masq 1 0 0
TCP 172.18.0.1:31643 rr
-> 10.175.43.3:80 Masq 1 0 0
TCP 172.19.0.1:30378 rr
-> 10.175.30.20:8080 Masq 1 0 0
-> 10.175.43.1:8080 Masq 1 0 0
-> 10.175.43.2:8080 Masq 1 0 0