mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-10 04:08:02 +03:00
Allow the DNS stack to be backward compatible with an old dns_domain (#10630)
Handle all old dns domains: - for nodelocaldns: in the same server block as the current dns_domain - for coredns: uffix rewrite of each of the old dns domains to the current one
This commit is contained in:
@@ -49,6 +49,9 @@ data:
|
||||
{% if coredns_rewrite_block is defined %}
|
||||
{{ coredns_rewrite_block | indent(width=8, first=False) }}
|
||||
{% endif %}
|
||||
{% for old_dns_domain in old_dns_domains %}
|
||||
rewrite name suffix {{ old_dns_domain }} {{ dns_domain }} answer auto
|
||||
{% endfor %}
|
||||
ready
|
||||
kubernetes {{ dns_domain }} {% if coredns_kubernetes_extra_domains is defined %}{{ coredns_kubernetes_extra_domains }} {% endif %}{% if enable_coredns_reverse_dns_lookups %}in-addr.arpa ip6.arpa {% endif %}{
|
||||
pods insecure
|
||||
|
||||
Reference in New Issue
Block a user