[lima] K3s split-DNS (again)
See original GitHub issueI just gave 0.6.0 a shot and my split-DNS from the host is not working in the container (see https://github.com/rancher-sandbox/rancher-desktop/issues/702).
I’ve been using Lima 0.7.1 just fine and it worked well (after the https://github.com/lima-vm/lima/pull/281). It doesn’t when installed with RD. I did a full reset and manually deleted lima.yaml
just to make sure.
I can confirm that the DNS resolution works well in the VM but not in the containers. CoreDNS is not able to resolve private addresses. I checked coredns config map and it seems fine (all-defaults). If I do dig +short @192.168.5.33 private-host
(an IP from /etc/resolve.conf
in the VM) in the container - it gives nothing, though it works in the VM itself.
Issue Analytics
- State:
- Created 2 years ago
- Comments:50 (21 by maintainers)
Top Results From Across the Web
Advanced Options and Configuration | K3s
kube-system coredns-8655855d6-rtbnb 1/1 Running 0 51s ... can only be added once and not changed after that again by running K3s commands.
Read more >Running Containerd and k3s on MacOS - Akihiro Suda, NTT ...
Don't miss out! Join us at our upcoming hybrid event: KubeCon + CloudNativeCon North America 2022 from October 24-28 in Detroit (and online!)...
Read more >[KubeCon EU 2022] Running containerd and k3s on macOS
Lima wraps QEMU in a simple CLI, with neat features for container users, such as filesystem sharing and automatic localhost port forwarding, as ......
Read more >Minikube quickly sets up a local Kubernetes cluster on macOS ...
I've tried several of the kubes and k3s for my personal projects works well. ... for a while: https://github.com/lima-vm/lima/blob/master/examples/k8s.yam.
Read more >Customizing DNS Service - Kubernetes
This page explains how to configure your DNS Pod(s) and customize the DNS resolution process in your cluster. Before you begin You need...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I originally tried
PREROUTING
andPOSTROUTING
rules, but couldn’t get them to work: https://github.com/lima-vm/lima/pull/281#issuecomment-931940795But that was when I was still trying to redirect to
127.0.53.53
. It doesn’t work because localhost traffic isn’t processing pre- and post-routing chains, which is why I switched to the output chain. But since we are now redirecting to an external address, this limitation no longer applies.I need to think about this for a while; will get back to you later
Ok I believe I’ve figured SRV out… adding now.