How to configure multiple clusters with certs? #105

Open
opened 1 year ago by sco11morgan · 1 comments

Hello and Happy New Year!

I'm trying to setup kube-web-view with a single instance connecting to multiple clusters and wondering how to solve the problem. Our clusters periodically update with new cluster URLs and certificates. When a cluster is updated a new kube config is made available containing just cluster configuration (no contexts).

Seems there are 2 possible approaches for an enhancement:

  1. Update KubeconfigDiscoverer to support iterating over clusters. Currently it iterates over contexts

  2. Update the cluster registry and ClusterRegistryDiscoverer to support "certificate-authority-data"

Hello and Happy New Year! I'm trying to setup kube-web-view with a single instance connecting to multiple clusters and wondering how to solve the problem. Our clusters periodically update with new cluster URLs and certificates. When a cluster is updated a new kube config is made available containing just cluster configuration (no contexts). Seems there are 2 possible approaches for an enhancement: 1. Update KubeconfigDiscoverer to support iterating over _clusters_. Currently it [iterates over contexts](https://codeberg.org/hjacobs/kube-web-view/src/branch/master/kube_web/cluster_discovery.py#L142) 2. Update the cluster registry and [ClusterRegistryDiscoverer](https://codeberg.org/hjacobs/kube-web-view/src/branch/master/kube_web/cluster_discovery.py#L105) to support "certificate-authority-data"
Owner

For 1.: Can't you create a kubeconfig with one context per cluster? I don't think that iterating over clusters makes sense as you also need the user (which is bound via the context).

For 1.: Can't you create a kubeconfig with one context per cluster? I don't think that iterating over clusters makes sense as you also need the user (which is bound via the context).
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.