change dns upstream condition for coredns (#8263)

upstream_dns_servers should change corefile config even resolvconf_mode=docker_dns
This commit is contained in:
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

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
}