From c25f4606aa3ba4155a032283c5a138e2fe475ffa Mon Sep 17 00:00:00 2001 From: toplordsaito <42961261+toplordsaito@users.noreply.github.com> Date: Thu, 2 Dec 2021 23:33:04 +0700 Subject: [PATCH] change dns upstream condition for coredns upstream_dns_servers should change corefile config even resolvconf_mode=docker_dns --- roles/kubernetes-apps/ansible/templates/coredns-config.yml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kubernetes-apps/ansible/templates/coredns-config.yml.j2 b/roles/kubernetes-apps/ansible/templates/coredns-config.yml.j2 index 337e876632e..f4747cd9f62 100644 --- a/roles/kubernetes-apps/ansible/templates/coredns-config.yml.j2 +++ b/roles/kubernetes-apps/ansible/templates/coredns-config.yml.j2 @@ -41,7 +41,7 @@ data: {% endif %} } prometheus :9153 -{% 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 %} forward . {{ upstream_dns_servers|join(' ') }} { prefer_udp }