Multi-Cluster Pod Deployment with Fabric8 Operator - Best Practices and API Support? #6619
Unanswered
aswinayyolath
asked this question in
Q&A
Replies: 1 comment 1 reply
-
No, each Kubernetes Client instance has a Config instance that is applicable for a single cluster. This means that if you want to target multiple clusters, you'll need a kuberntesClient instance for each cluster. So potentially you'd have a |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently working on a POC involving an Operator using Java and the fabric8 K8s client with an interesting use case. The Operator runs in one primary K8s cluster and applies a CR in that cluster. However, the Operator's role goes further - it should create and manage pods across multiple Kubernetes clusters based on the applied CR.
Potential Approach
One approach I am considering involves defining the CRD such that the CRs include details of the target clusters, such as their URLs and credentials. The Operator would use this information to interact with the Kubernetes API server of the target clusters to create resources.
The secret field would reference a K8s Secret that contains the kubeconfig or authentication details required to access the target cluster. The Operator could then use these details to establish a KubernetesClient instance dynamically and create the necessary resources.
So these are my questions
fabric8
?fabric8
already offer APIs or built-in features that support multi-cluster interactions, or is managing multiple KubernetesClient instances manually the way to go?I would appreciate any insights, examples, or advice on implementing this use case effectively and securely.
Beta Was this translation helpful? Give feedback.
All reactions