xujieasd / kube-enn-proxy

IPVS implementation for kube-proxy
2 stars 1 forks source link

nodeport for 127.0.0.1 do not work #7

Open xujieasd opened 6 years ago

xujieasd commented 6 years ago

scenario: 1) create service with nodeport: e.g 10.19.137.154:30100 2) login 10.19.137.154 and curl 127.0.0.1:30100

iptables can access 127.0.0.1:30100 but ipvs cannot

A simple fix solution is: add 127.0.0.1:30100 in ipvs rule

xujieasd commented 6 years ago

add 127.0.0.1:30100 in ipvs rule didn‘t work

xujieasd commented 6 years ago

also, dnat 127.0.0.1 to real local ip then use ipvs do proxy dose not work now the only way is to dnat 127.0.0.1 to another machine, then use other machines ipvs do proxy

xujieasd commented 6 years ago

work around: use dummy domain name