Added templating to coredns error to allow for consolidation (#10501)
parent
abaddb4c9b
commit
d3101d65aa
|
@ -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 }}
|
||||
|
@ -31,10 +35,14 @@ data:
|
|||
{% endfor %}
|
||||
{% endif %}
|
||||
.:53 {
|
||||
{% if coredns_additional_configs is defined %}
|
||||
{% if coredns_additional_configs is defined %}
|
||||
{{ coredns_additional_configs | indent(width=8, first=False) }}
|
||||
{% endif %}
|
||||
errors
|
||||
{% endif %}
|
||||
errors {
|
||||
{% if coredns_additional_error_config is defined %}
|
||||
{{ coredns_additional_error_config | indent(width=10, first=False) }}
|
||||
{% endif %}
|
||||
}
|
||||
health {
|
||||
lameduck 5s
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue