Help Center/ Ubiquitous Cloud Native Service/ FAQs/ Fleets/ What Can I Do If a Cluster Fails to Be Added to a Federation?
Updated on 2024-04-11 GMT+08:00

What Can I Do If a Cluster Fails to Be Added to a Federation?

Context

When a cluster is added to a federation, the error message "the same cluster has been registered with name clusterName" or "cluster(clusterName) is joined successfully" is displayed.

Possible Cause

The cluster node is faulty and then pods are restarted. As the karmadactl join command is not idempotent, an error is reported when the command is executed again.

Solution

Remove the cluster from the federation and run the kubectl get cluster command to check whether the cluster exists in the federation.

- If the cluster exists in the federation, run the kubectl edit cluster clusterName command to edit the YAML file and delete the finalizers field. Then run the kubectl get cluster command to check whether the cluster exists in the federation.

- If the cluster does not exist in the federation, add the cluster to the federation again.