Skip to content

Add Second Kubernetes Cluster to ArgoCD

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
image 9

merge two config files into one

image 10

set default context

image 11

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
image 12

add second kubernetes

image 13

verify

image 14
image 15

Conclusion

we have learned how to add additional cluster into ArgoCD.

Leave a Reply