Skip to content

How to import k3d cluster into local rancher #689

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

You must be logged in to vote

Hi @mavogel , thanks for starting this discussion!
I just got back from vacation, so sorry for the late reply..

So let me see if I got that correctly:

You have a k3d cluster and a Rancher container in the same docker network.
You're deploying the Rancher Agent pods in k3d, but they cannot resolve the name of the Rancher Server container running outside of the cluster.

If that's correct, then you can patch the CoreDNS configmap in the cluster to include the address of the rancher-local container.
Check it out via kubectl edit configmap coredns -n kube-system and you'll see similar entries e.g. for NodeHosts.

That should (could) do the trick 👍

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mavogel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants