mirror of
https://github.com/floci-io/floci.git
synced 2026-11-28 16:11:48 -05:00
Pods resolve through CoreDNS, which forwards to the resolver file k3s hands them. k3s takes the node's /etc/resolv.conf, and on a user-defined Docker network that names only Docker's loopback 127.0.0.11, which k3s refuses; it then writes a file naming a public resolver. So Route 53 private zones, Cloud Map names and the other names only Floci answers never resolved from a pod. When embedded DNS is on and running, and the cluster's Docker network can reach it, Floci now copies a resolver file naming only its DNS server into the cluster container before it starts, and passes it to k3s with --resolv-conf. With Floci in a container that means the cluster is on Floci's own network: Docker isolates user-defined networks, and pods given only an unreachable resolver would lose the public one too. The public fallback resolvers stay out of it, because CoreDNS picks among its upstreams at random. A cluster that sets the kubelet's resolv-conf through its tags keeps its own file. A file that cannot be copied fails the start, as a container that cannot start does, since k3s would hand its pods a missing file.