k8s-bigip-ctlr icon indicating copy to clipboard operation
k8s-bigip-ctlr copied to clipboard

Automate primaryClusterEndPoint configuration in multicluster CIS

Open avinashchundu9 opened this issue 2 years ago • 3 comments

Title

Automate primaryClusterEndPoint configuration in multicluster CIS

Description

In a multi-kubernetes cluster where there is no direct pod-to-pod communication between the clusters, configuring primaryClusterEndPoint is either a manual load balancer or NodePort. Node port is not an option in the prod environment and the manual load balancer is hard to manage when we have multiple CIS and dynamic worker nodes.

Actual Problem

primaryClusterEndPoint endpoint is needed for health checks between the CIS. We need a CIS to configure and manage primaryClusterEndPoint in the cluster.

Solution Proposed

Request inputs for creating primaryClusterEndPoint load balancer and create it during CIS startup.

Example: Request IP address, and service details in config map and use those details to create a load balancer for primaryClusterEndPoint during CIS startup.

Alternatives

Allow users to define multiple NodePort endpoints for primaryClusterEndPoint. This will enable users who want to stick with Nodeport.

avinashchundu9 avatar Mar 26 '24 18:03 avinashchundu9

Created [CONTCNTR-4664] for internal tracking.

trinaths avatar Mar 27 '24 05:03 trinaths

Couldn't we just use Kubernetes API to check if the Primary CIS is Ready?

This would simplify things greatly

alonsocamaro avatar Apr 11 '24 08:04 alonsocamaro

Yes, that's even better solution since we are already providing kubeconfig as secrets in the configmaps.

avinashchundu9 avatar Apr 11 '24 23:04 avinashchundu9