Skip to content
Snippets Groups Projects
Unverified Commit d3101d65 authored by Elias-elastisys's avatar Elias-elastisys Committed by GitHub
Browse files

Added templating to coredns error to allow for consolidation (#10501)

parent abaddb4c
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,8 @@ coredns_default_zone_cache_block: |
# answer name (.*)\.svc\.cluster\.local {1}.my.domain
# }
# coredns_additional_error_config: |
# consolidate 5m ".* i/o timeout$" warning
# dns_upstream_forward_extra_opts apply to coredns forward section as well as nodelocaldns upstream target forward section
# dns_upstream_forward_extra_opts:
......
......@@ -12,7 +12,11 @@ data:
{% for block in coredns_external_zones %}
{{ block['zones'] | join(' ') }} {
log
errors
errors {
{% if coredns_additional_error_config is defined %}
{{ coredns_additional_error_config | indent(width=10, first=False) }}
{% endif %}
}
{% if block['rewrite'] is defined and block['rewrite'] | length > 0 %}
{% for rewrite_match in block['rewrite'] %}
rewrite {{ rewrite_match }}
......@@ -34,7 +38,11 @@ data:
{% if coredns_additional_configs is defined %}
{{ coredns_additional_configs | indent(width=8, first=False) }}
{% endif %}
errors
errors {
{% if coredns_additional_error_config is defined %}
{{ coredns_additional_error_config | indent(width=10, first=False) }}
{% endif %}
}
health {
lameduck 5s
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment