In multiple clusters on a host, how do we connect from one to other cluster? #1015
-
I'm trying to setup 3 clusters on my laptop to replicate my company's infrastructure. One of the clusters has ArgoCD installed and when I try adding one of other 2 clusters to it, it fails because I'm not sure which IP/DNS name to use in I tried using Any suggestions? For example, this is how I create ArgoCD cluster:
|
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 4 replies
-
Hi @pentago , thanks for starting this discussion! EDIT: How are you setting up ArgoCD and try to add clusters to it? |
Beta Was this translation helpful? Give feedback.
-
Basically, I use Makefile to create 3 separate clusters all connected in one network. This all works fine, the problem starts when I need to add other clusters (dev, prod) to ArgoCD via its CLI. Not sure why but ArgoCD times out when connecting to other clusters. I thought the network is the issue but I'm able to connect from GitOps cluster to others with curl from any running pods. I tried using various API port and changing kubeconfig server key to I'd appreciate literally any help 👍 |
Beta Was this translation helpful? Give feedback.
-
Hey @iwilltry42, any luck with the setup? |
Beta Was this translation helpful? Give feedback.
-
Worked for me, see screenshot below. How
UPDATE 1: |
Beta Was this translation helpful? Give feedback.
-
I finally tried this way and it worked fine, clusters are added real smooth :) If there's a way for me to send you a beer and/or pizza, let me know, this means a lot to me! 💪 |
Beta Was this translation helpful? Give feedback.
-
Hi @iwilltry42, |
Beta Was this translation helpful? Give feedback.
Worked for me, see screenshot below.
How
--k3s-arg "--tls-san=host.k3d.internal@server:0"
for development and production clusters in Makefilemake multi
k3d-development
cluster config to usehost.k3d.internal
host.k3d.internal
mapping to/etc/hosts
, so thatkubectl
knows how to get there:echo "127.0.0.1 host.k3d.internal" >> /etc/hosts
argocd cluster add k3d-development
UPDATE 1:
Alternative: First do
echo "0.0.0.0 host.k3d.internal" >> /etc/hosts
, remove all extra--tls-san
lines from the Makefile and update--api-port
to include