From 45e678834b524d208b0016282f8922735d65d07e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hedayat=20Vatankhah=20=28=D9=87=D8=AF=D8=A7=DB=8C=D8=AA=29?= Date: Wed, 1 Nov 2023 06:03:57 +0330 Subject: [PATCH] Set remove_default_searchdomains to false by default (#10554) It was not 'false', which made some tasks (e.g. using systemd-resolved template) to effectively remove default search domains; caused DNS loop after rebooting the node/restarting cluster, so localdns service didn't run correctly. --- roles/kubernetes/preinstall/defaults/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/kubernetes/preinstall/defaults/main.yml b/roles/kubernetes/preinstall/defaults/main.yml index f7670318fb3..c18209e7ceb 100644 --- a/roles/kubernetes/preinstall/defaults/main.yml +++ b/roles/kubernetes/preinstall/defaults/main.yml @@ -23,6 +23,9 @@ common_required_pkgs: # GCE docker repository disable_ipv6_dns: false +# Remove default cluster search domains (``default.svc.{{ dns_domain }}, svc.{{ dns_domain }}``). +remove_default_searchdomains: false + kube_owner: kube kube_cert_group: kube-cert kube_config_dir: /etc/kubernetes