Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable DNSStubListener for Flatcar Linux #9160

Merged
merged 2 commits into from
Aug 18, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions roles/kubernetes/preinstall/templates/resolved.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@ Domains={{ ([ 'default.svc.' + dns_domain, 'svc.' + dns_domain ] + searchdomains
#MulticastDNS=no
DNSSEC=no
Cache=no-negative
{% if ansible_os_family in ["Flatcar", "Flatcar Container Linux by Kinvolk"] %}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks ok to me but it may be a more general solution to deal with distributions running systemd-resolved; why limit it to just Flatcar?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At least in my environment (Flatcar Linux) this inevitably became a problem.

I've been tracking this issue steadily until very recently, and found that it crashes when the `nodelocaldns' feature is enabled.

I don't think this works the same on other distributions (such as Ubuntu). The enable_nodelocaldns feature is already enabled by default, so I know that no other major distributions have reported problems with it.

Another peculiarity is that, at least in Flatcar Linux, the /etc/resolv.conf configuration file is not valid, and instead depends only on the systemd-resolved. However, there are several resolvconf stuffs that are specific to Flatcar Linux, but I still don't know why they exist.

Especially,

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, ok, lets go ahead with this change then and see if other deployments report this problem, I have a suspicion that ubuntu 22.04 may be affected as well bug since I'm not running that in production anywhere this is just a suspicion.

DNSStubListener=no
{% else %}
#DNSStubListener=yes
{% endif %}