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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot