contiv / netplugin

Container networking for various use cases
Apache License 2.0
513 stars 177 forks source link

K8s "Service" could not work in contiv vlan mode #1083

Open madianjun opened 6 years ago

madianjun commented 6 years ago

I'm using contiv+vlan,i create k8s Service(service A) for two pods(pod A1, A2), and create another pod(pod B)。There are two problems: (1) In pod B, "curl" clusterIP of service A, it will always connect to only one pod (pod A1 or pod A2), but not balance traffic to the two pods. (2) In pod B, "curl" two pod ip of service A, it will success on one pod ip, but fail on the other one; pod B could ONLY connect to one pod ip (A1 or A2). If service A is deleted, both of the two problems above are gone. It seems that the k8s "Service" could not work in contiv vlan mode.