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
![Add Second Kubernetes Cluster to ArgoCD 1 image 9](https://www.gosysops.com/wp-content/uploads/2021/02/image-9.png)
merge two config files into one
![Add Second Kubernetes Cluster to ArgoCD 2 image 10](https://www.gosysops.com/wp-content/uploads/2021/02/image-10.png)
set default context
![Add Second Kubernetes Cluster to ArgoCD 3 image 11](https://www.gosysops.com/wp-content/uploads/2021/02/image-11.png)
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 Cluster to ArgoCD 4 image 12](https://www.gosysops.com/wp-content/uploads/2021/02/image-12.png)
add second kubernetes
![Add Second Kubernetes Cluster to ArgoCD 5 image 13](https://www.gosysops.com/wp-content/uploads/2021/02/image-13.png)
verify
![Add Second Kubernetes Cluster to ArgoCD 6 image 14](https://www.gosysops.com/wp-content/uploads/2021/02/image-14-1024x250.png)
![Add Second Kubernetes Cluster to ArgoCD 7 image 15](https://www.gosysops.com/wp-content/uploads/2021/02/image-15-1024x564.png)
Conclusion
we have learned how to add additional cluster into ArgoCD.