Working with Argo CD
This topic walks you through how to use the Argo CD to manage your workload
across clusters with Karmada.
Prerequisites
Argo CD Installation
You have installed Argo CD following the instructions in Getting Started.
Karmada Installation
In this example, we are using a Karmada environment with at least 3 member clusters joined.
You can set up the environment by hack/local-up-karmada.sh, which is also used to run our E2E cases.
$ kubectl get clusters
NAME VERSION MODE READY AGE
member1 v1.19.1 Push True 18h
member2 v1.19.1 Push True 18h
member3 v1.19.1 Pull True 17h
Registering Karmada to Argo CD
This step registers Karmada control plane to Argo CD.
First list the contexts of all clusters in your current kubeconfig:
kubectl config get-contexts -o name
Choose the context of the Karmada control plane from the list and add it to argocd cluster add CONTEXTNAME.
For example, for karmada-apiserver context, run:
argocd cluster add karmada-apiserver
If everything goes well, you can see the registered Karmada control plane from the Argo CD UI, e.g.:
