Skip to content

In multiple clusters on a host, how do we connect from one to other cluster? #1015

Answered by iwilltry42
pentago asked this question in Q&A
Discussion options

You must be logged in to vote

Worked for me, see screenshot below.

How

  1. Add --k3s-arg "--tls-san=host.k3d.internal@server:0" for development and production clusters in Makefile
  2. Run make multi
  3. (gitops) Install argocd as per https://argo-cd.readthedocs.io/en/stable/getting_started/
  4. Edit the local kubeconfig: change the k3d-development cluster config to use host.k3d.internal
  5. Add host.k3d.internal mapping to /etc/hosts, so that kubectl knows how to get there: echo "127.0.0.1 host.k3d.internal" >> /etc/hosts
  6. Add cluster: argocd cluster add k3d-development
  7. Profit

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

Replies: 6 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@iwilltry42
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by pentago
Comment options

You must be logged in to vote
3 replies
@iwilltry42
Comment options

@pentago
Comment options

@iwilltry42
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
3 participants
Converted from issue

This discussion was converted from issue #1002 on March 15, 2022 12:10.