We have learned how to install ArgoCD in previous post, which it can deploy deployment resources within kubernetes. If we want to deploy applicatons to other kubertes, how do we do it? you will learn it in this post.
Install kubecm to manage config
Kubecm is a free software tool that can manage multiple kubernetes config. it can be used to merge multiple configs into one config.
Install, it’s quite simple, unzip and move it to /usr/bin/
wget https://github.com/sunny0826/kubecm/releases/download/v0.15.2/kubecm_0.15.2_Linux_x86_64.tar.gz
tar zxvf
mv kubecm /usr/bin

merge two config files into one

set default context

Add additonal Kubernetes
Download cli
wget https://github.com/argoproj/argo-cd/releases/download/v1.7.12/argocd-linux-amd64
login argocd server and list cluster
[root@localhost ~]# argocd login --insecure grpc.argocd.gosysops.com

add second kubernetes

verify


Conclusion
we have learned how to add additional cluster into ArgoCD.