Browse Source

change dns upstream condition for coredns (#8263)

upstream_dns_servers should change corefile config even resolvconf_mode=docker_dns
pull/8232/head
toplordsaito 2 years ago
committed by GitHub
parent
commit
9afca43807
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. 2
      roles/kubernetes-apps/ansible/templates/coredns-config.yml.j2

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

Loading…
Cancel
Save