change dns upstream condition for coredns (#8263)

upstream_dns_servers should change corefile config even resolvconf_mode=docker_dns
pull/8232/head
toplordsaito 2021-12-06 17:46:32 +07:00 committed by GitHub
parent 27ab364df5
commit 9afca43807
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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
}