karmada-io / karmada

Open, Multi-Cloud, Multi-Cluster Kubernetes Orchestration
https://karmada.io
Apache License 2.0
4.4k stars 871 forks source link

One command to build multi-clusters by karmada helm chart #4305

Open chaosi-zju opened 10 months ago

chaosi-zju commented 10 months ago

What would you like to be added:

A script using just one command to build multi-clusters by karmada helm chart

Why is this needed:

There are sevaral scenarios:

1) scenario one

I am a real user of karmada, I has several real clusters in prod environment, I want to build multi-clusters by karmada.

It is not fit for me to use hack/local-up-karmada.sh, it just mocked some KinD clusters.

I tend to install karmada by helm chart on given clusters, so I should install karmada on control plane and then join member clusters. But it is so hard for me to finish the whole process, especially in pull mode, I have to settle the certs of karmada-agent.

I want just one command to finish the whole process, I need just provided my kubeconfig path and specify how many clusters I want, after one command, the whole clusters builded success, just like:

NAME      VERSION   MODE   READY   AGE   APIENDPOINT
member1   v1.27.3   Push   True    45s   https://172.18.0.3:6443
member2   v1.27.3   Pull   True    2s    
member3   v1.27.3   Push   True    41s   https://172.18.0.4:6443

2) scenario two

I am new to Karmada, I want to try karmada, I am familiar with helm chart.

I just want to try the features of karmada, I don't have any patience for karmada installation.

I want just one command script to help me create clusters first and then build the control plane and member cluster success.

Besides, I am behind firewall, pulling images is a trouble to me when installing, I don't want to waste time to solve it by config proxy, I can only accept fetch the image to local node in advance.

3) scenario true

I am a Developer or Tester, our project is based on Karmada, I want to construct a variety of complex multi-cluster scenarios.

So, I want a installation script which can specify the number of push mode clusters or pull mode clusters.

For example, I need 5 push mode clusters and 3 pull mode clusters, by executing one command, the member clusters installed success.

chaunceyjiang commented 10 months ago

One command to build multi-clusters by karmada helm chart

Why not use karmadactl init?

liangyuanpeng commented 10 months ago

duplicate #4306

chaosi-zju commented 10 months ago

Why not use karmadactl init?

supposing I have 10 cluster, I want to install karmada control plane at No.1 cluster, and join push mode member cluster at No.2 ~ No.5 cluster, and join pull mode member cluster at No.6 ~ No.10 cluster, however karmadactl neither can achieve one command to build multi-cluster, the user should execute the command step by step.

besides, some user tend to use helm, since we provided this install method, why not improve it.

besides, I often hear users feedback the failure, even diss the helm installtion method in wechat group, it actually not friendly using to users.

chaosi-zju commented 10 months ago

duplicate #4306

thanks for finding~ There was a problem with the network and duplicate submissions were made