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

Adding or removing single cluster to load balancer pool #205

Closed KamiMay closed 5 years ago

KamiMay commented 6 years ago

Hello, I was looking for some instructions how to add or remove single cluster from the load balanced pool, but failed to do so. Is it possible to do without recreating load balancer with new cluster list?

Thanks

nikhiljindal commented 6 years ago

Oops sorry looks like we dont have any documentation for this.

To remove clusters: You can use "kubemci remove-clusters --kubeconfig" where kubeconfig has the list of clusters you want to remove the MCI from.

To add clusters: You can just re-run the kubemci create command again with updated list of clusters in kubeconfig.

Note that running either of those commands will not recreate the load balancer. It should add/remove backends to existing load balancer without affecting the existing backends.

nikhiljindal commented 6 years ago

https://github.com/GoogleCloudPlatform/k8s-multicluster-ingress/issues/58 and https://github.com/GoogleCloudPlatform/k8s-multicluster-ingress/pull/146 have more information on the remove-clusters command.