Add config coredns_external_zones (#5280)

Allows to add custom zone resolving servers.
This commit is contained in:
Mateus Caruccio
2020-03-27 03:34:23 -03:00
committed by GitHub
parent e8c49b0090
commit 3237b2702f
2 changed files with 42 additions and 0 deletions

View File

@@ -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