Configuring Argo CD against multiple clusters
If you are planning to use Argo CD to deploy applications to external clusters, you need to add the new cluster’s credentials using the argocd
CLI. You can skip this step if you want to deploy applications in the same cluster where Argo CD is installed (the kubernetes.default.svc
file already exists and should be used in this case).
To register new clusters, perform the following steps using the argocd
CLI you installed previously:
- Log into the new cluster we want to register:
$ oc login -u <user> https://<api-newcluster>:6443
- Now, log into the cluster where Argo CD is installed using
oc login
:$ oc login -u <user> https://<api-argocluster>:6443
- At this point, you should have both clusters in your
kubeconfig
file:$ oc config get-contexts CURRENT NAME CLUSTER AUTHINFO NAMESPACE &...