From ef76a578a46660a098a7b2343990d5b7bdce4b40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Unai=20Arr=C3=ADen?= Date: Tue, 11 Oct 2022 09:47:02 +0200 Subject: [PATCH] Change dns upstream condition for nodelocaldns (#9378) --- roles/kubernetes-apps/ansible/tasks/nodelocaldns.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/kubernetes-apps/ansible/tasks/nodelocaldns.yml b/roles/kubernetes-apps/ansible/tasks/nodelocaldns.yml index 539701157..b94509f45 100644 --- a/roles/kubernetes-apps/ansible/tasks/nodelocaldns.yml +++ b/roles/kubernetes-apps/ansible/tasks/nodelocaldns.yml @@ -33,7 +33,7 @@ {{ primaryClusterIP }} {%- endif -%} upstreamForwardTarget: >- - {%- if resolvconf_mode == 'host_resolvconf' and upstream_dns_servers is defined and upstream_dns_servers|length > 0 -%} + {%- if upstream_dns_servers is defined and upstream_dns_servers|length > 0 -%} {{ upstream_dns_servers|join(' ') }} {%- else -%} /etc/resolv.conf @@ -61,7 +61,7 @@ {{ primaryClusterIP }} {%- endif -%} upstreamForwardTarget: >- - {%- if resolvconf_mode == 'host_resolvconf' and upstream_dns_servers is defined and upstream_dns_servers|length > 0 -%} + {%- if upstream_dns_servers is defined and upstream_dns_servers|length > 0 -%} {{ upstream_dns_servers|join(' ') }} {%- else -%} /etc/resolv.conf