GoogleCloudPlatform / k8s-multicluster-ingress

kubemci: Command line tool to configure L7 load balancers using multiple kubernetes clusters
Apache License 2.0
376 stars 68 forks source link

Support clusters in different VPC networks #144

Open pierrejdsouza opened 6 years ago

pierrejdsouza commented 6 years ago

I created 2 clusters in different regions. And I have a custom URL /healthcheck that will be used for the health check. So what happens is that I can create the ingress on HTTPS with HTTPS healthchecks, but i have to manually change the URL to /healthcheck and I have to add a Host because it is using HTTPS.

The funny thing is that, if you go to the GCLB, 1 of the region is marked as 1/1, meaning it is accepting traffic, while the other is marked as 0/1. I assume that manually changing healthcheck once its created did this probably?

Any ideas?

pierrejdsouza commented 6 years ago

OK, found the problem, it seems that when creating the ingress, it only created 1 firewall rule. The 2 regions I created have 2 seperate VPCs. So I had to manually create the firewall rule for the 2nd network in order for the health check to work.

G-Harmon commented 6 years ago

@nikhiljindal , is this the potential issue we discussed today where we would not do the right thing if 2 member MCI clusters were in different networks? If so, I think we should keep this open as something to eventually support.

nikhiljindal commented 5 years ago

xref https://github.com/GoogleCloudPlatform/k8s-multicluster-ingress/pull/222 which aims to fix this