Skip to content

Commit

Permalink
change dns upstream condition for coredns (kubernetes-sigs#8263)
Browse files Browse the repository at this point in the history
upstream_dns_servers should change corefile config even resolvconf_mode=docker_dns
  • Loading branch information
waruwat-dev authored and LuckySB committed Jun 28, 2023
1 parent 6df18bb commit e079845
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit e079845

Please sign in to comment.