From 9afca43807e603ae27447811f09972f1e7dc3e6e Mon Sep 17 00:00:00 2001 From: toplordsaito <42961261+toplordsaito@users.noreply.github.com> Date: Mon, 6 Dec 2021 17:46:32 +0700 Subject: [PATCH] change dns upstream condition for coredns (#8263) 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 337e87663..f4747cd9f 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 }