GoogleCloudPlatform / k8s-multicluster-ingress

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

kubemci does not work with clusters with enabled network endpoint group #224

Open bbcelly opened 5 years ago

bbcelly commented 5 years ago

Trying to run kubemci on cluster with enabled network endpoint group ends with error

Determining instance groups for cluster xxx-cluster
Fetching instance group: xxx-group
Fetched instance group: xxx-group, got named ports:
Error: Error in creating load balancer: 1 error occurred:

* No named ports found. Can not continue

Tried to look into code and found, that there is no support for NEG enabled clusters. In https://github.com/GoogleCloudPlatform/k8s-multicluster-ingress/blob/master/app/kubemci/pkg/gcp/loadbalancer/loadbalancersyncer.go#L109 code only cares about Instance Groups.