mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-09 19:58:07 +03:00
Add support for dns_etchosts (#6236)
This commit is contained in:
@@ -17,6 +17,11 @@ data:
|
||||
loadbalance
|
||||
cache {{ block['cache'] | default(5) }}
|
||||
reload
|
||||
{% if dns_etchosts | default(None) %}
|
||||
hosts /etc/coredns/hosts {
|
||||
fallthrough
|
||||
}
|
||||
{% endif %}
|
||||
}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
@@ -50,4 +55,13 @@ data:
|
||||
loop
|
||||
reload
|
||||
loadbalance
|
||||
{% if dns_etchosts | default(None) %}
|
||||
hosts /etc/coredns/hosts {
|
||||
fallthrough
|
||||
}
|
||||
{% endif %}
|
||||
}
|
||||
{% if dns_etchosts | default(None) %}
|
||||
hosts: |
|
||||
{{ dns_etchosts }}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user