weave icon indicating copy to clipboard operation
weave copied to clipboard

How to implement Virtual Service IP in weave?

Open KendrickChou opened this issue 3 years ago • 1 comments

Hi! I'm using weave as the cni plugin to create a self-made mini k8s cluster. To support services, I need to map a virtual service ip(e.g. 10.6.6.6) to several container ip(e.g. 10.30.0.1, 10.30.0.2) which are allocated by weave. The problem is: How can I convert the virtual service ip to a container ip before the packet was send to Weave Router to be encapsulated in a tunnel protocol header? I've tried using DNAT in iptables, but it doesn't work. I think the problem is although I change the packet destination (e.g. 10.6.6.6 -> 10.30.0.1), the packet will not be sent to Weave Router to add a tunnel protocol header. Much appreciation for your help :)

KendrickChou avatar May 13 '22 14:05 KendrickChou

I notice that someone commited a similar issue in 2015: IP load balancing and it was added to milestones, but it doesn't seem to have been solved.

KendrickChou avatar May 13 '22 14:05 KendrickChou