Skip to content

Why is k3s creating /tmp/k3s-resolve.conf with nameserver 8.8.8.8? #3867

Discussion options

You must be logged in to vote

I found this comment: #53 (comment)

The settings are configurable in that we will either take a --resolv-conf flag to pass down to the kubelet, or a K3S_RESOLV_CONF environment variable will work also. We now try to use system resolv.conf files (from /etc & systemd), and will create a /tmp/k3s-resolv.conf file with nameserver 8.8.8.8 if nameservers in the system files are not global unicast ips.

You can provide your own resolv.conf to K3s, but I don't know how to do that when using K3d.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@brandond
Comment options

@the-scott-hand
Comment options

Answer selected by the-scott-hand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants