From be5fdab3aa417df4ffaaa901bbe9faa9ea07ca50 Mon Sep 17 00:00:00 2001 From: Ho Kim Date: Thu, 18 Aug 2022 16:56:49 +0900 Subject: [PATCH] Disable DNSStubListener for Flatcar Linux (#9160) * Disable DNSStubListener for Flatcar Linux * Fix missing "Flatcar" condition of os_family --- roles/kubernetes/preinstall/templates/resolved.conf.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/kubernetes/preinstall/templates/resolved.conf.j2 b/roles/kubernetes/preinstall/templates/resolved.conf.j2 index cfb924e47..72d4e3331 100644 --- a/roles/kubernetes/preinstall/templates/resolved.conf.j2 +++ b/roles/kubernetes/preinstall/templates/resolved.conf.j2 @@ -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"] %} +DNSStubListener=no +{% else %} #DNSStubListener=yes +{% endif %}