kubesphere / kubesphere

The container platform tailored for Kubernetes multi-cloud, datacenter, and edge management ⎈ 🖥 ☁️
https://kubesphere.io
Other
15.1k stars 2.14k forks source link

The host cluster is not shown in the cluster list #2304

Closed liuyp2018 closed 4 years ago

liuyp2018 commented 4 years ago

Login the console of the Host cluster the host cluster is not shown in the cluster list

host cluster

/kind bug /area multicluster /assign @zryfish /milestone 3.0.0

WaysonWei commented 4 years ago

Is this was designed in this way or a bug?

Host cluster have to add itself as member cluster in the beginning. If this is the case, why not make it automatic when creating the host cluster?

zryfish commented 4 years ago

It works as designed. Host cluster is where the multicluster control plane installed, we don't want there are too many workloads or any misconfiguration there since it will cause problems. If host cluster is down, then you can't access control plane any more. So we encourage users do not add host as a member cluster, but we are still open to suggestions.

WaysonWei commented 4 years ago

ok, got it. But the number of cluster showing in dashboard was very confused as it is showing 1 when I have host cluster up without any member cluster joined( empty cluster list ). Then it stay at 1 if I have 1st member cluster joined.

Would it be better to show Host cluster & Member cluster separately? like Host Cluster : 1 Member Cluster : ( 0 - many )

Screen Shot 2020-07-08 at 11 42 51 AM Screen Shot 2020-07-08 at 11 43 42 AM
rayzhou2017 commented 4 years ago

That sounds good to me. @Carlosfengv @leoendless

rayzhou2017 commented 4 years ago

Host is added automatically now. Please check the latest build.

liuyp2018 commented 4 years ago

/close