karmada-io / website

Karmada website and documentation repo
https://karmada.io
Creative Commons Attribution 4.0 International
26 stars 115 forks source link

Documents for Highly Available Topology #418

Open RainbowMango opened 1 year ago

RainbowMango commented 1 year ago

What documentation would you like to be added:

Add some documents about how to deploy the HA(highly available) Karmada.

Why do you think this document is needed:

I believe that Karmada is capable of high availability because I have heard that some users have already done so, but so far, there are no relevant docs in Karmada that describe how to deploy a high availability control plane.

Many users would need this document, such as :

Where do you think the document should be placed:

Affan-7 commented 11 months ago

/assign

Affan-7 commented 11 months ago

I have successfully created a karmada cluster and a member cluster on my local machine using kind. I also registered the member cluster to the karmada. But when I try to deploy karmada with HA using kubectl karmada init --karmada-apiserver-replicas 3 --etcd-replicas 3 command. It give me the following error.

error: for data security,when etcd storage mode is hostPath,etcd-replicas can only be 1

Is there a solution to create multiple etcd storages with hostPath storage mode? Or any other solution to run karmada HA locally?

samzong commented 11 months ago

Hi @Affan-7

Thanks for your choose the Karmada.

I'm not an expert in this area. However, based on the error message, my suggestion is that you could try to resolve the problem by using a storageclass or an external etcd.

Using a single replica of etcd in a production environment is dangerous.

If you plan to use Karmada in a production environment, please let us know at the earliest opportunity.

If you have any more questions, feel free to create an Issue or join our official Slack channel at any time.