mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-25 01:27:47 -02:30
Add support for dns_etchosts (#6236)
This commit is contained in:
@@ -19,6 +19,11 @@ data:
|
||||
forward . {{ block['nameservers'] | join(' ') }}
|
||||
prometheus :9253
|
||||
log
|
||||
{% if dns_etchosts | default(None) %}
|
||||
hosts /etc/coredns/hosts {
|
||||
fallthrough
|
||||
}
|
||||
{% endif %}
|
||||
}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
@@ -36,6 +41,11 @@ data:
|
||||
}
|
||||
prometheus :9253
|
||||
health {{ nodelocaldns_ip }}:{{ nodelocaldns_health_port }}
|
||||
{% if dns_etchosts | default(None) %}
|
||||
hosts /etc/coredns/hosts {
|
||||
fallthrough
|
||||
}
|
||||
{% endif %}
|
||||
}
|
||||
in-addr.arpa:53 {
|
||||
errors
|
||||
@@ -67,4 +77,13 @@ data:
|
||||
bind {{ nodelocaldns_ip }}
|
||||
forward . {{ upstreamForwardTarget }}
|
||||
prometheus :9253
|
||||
{% 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