k8s: forwarding from public VIP to clusterIP with iptables

后端 未结 1 2007
轻奢々
轻奢々 2021-01-16 09:02

I\'m trying to understand in depth how forwarding from publicly exposed load-balancer\'s layer-2 VIPs to services\' cluster-IPs works. I\'ve read a high-level overview how M

相关标签:
1条回答
  • 2021-01-16 09:41

    need to add MASQUERADE rule also, so that the source is changed accordingly. for example:
    iptables -t nat -A POSTROUTING -j MASQUERADE

    tested with ipvs

    0 讨论(0)
提交回复
热议问题