mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-09 19:58:07 +03:00
Add config coredns_external_zones (#5280)
Allows to add custom zone resolving servers.
This commit is contained in:
@@ -8,6 +8,18 @@ metadata:
|
||||
addonmanager.kubernetes.io/mode: EnsureExists
|
||||
data:
|
||||
Corefile: |
|
||||
{% if coredns_external_zones is defined and coredns_external_zones|length > 0 %}
|
||||
{% for block in coredns_external_zones %}
|
||||
{{ block['zones'] | join(' ') }} {
|
||||
log
|
||||
errors
|
||||
forward . {{ block['nameservers'] | join(' ') }}
|
||||
loadbalance
|
||||
cache {{ block['cache'] | default(5) }}
|
||||
reload
|
||||
}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
.:53 {
|
||||
errors
|
||||
health
|
||||
|
||||
Reference in New Issue
Block a user