mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 22:04:43 +03:00
Added templating to coredns error to allow for consolidation (#10501)
This commit is contained in:
@@ -27,6 +27,8 @@ coredns_default_zone_cache_block: |
|
|||||||
# answer name (.*)\.svc\.cluster\.local {1}.my.domain
|
# 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 apply to coredns forward section as well as nodelocaldns upstream target forward section
|
||||||
# dns_upstream_forward_extra_opts:
|
# dns_upstream_forward_extra_opts:
|
||||||
|
|||||||
@@ -12,7 +12,11 @@ data:
|
|||||||
{% for block in coredns_external_zones %}
|
{% for block in coredns_external_zones %}
|
||||||
{{ block['zones'] | join(' ') }} {
|
{{ block['zones'] | join(' ') }} {
|
||||||
log
|
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 %}
|
{% if block['rewrite'] is defined and block['rewrite'] | length > 0 %}
|
||||||
{% for rewrite_match in block['rewrite'] %}
|
{% for rewrite_match in block['rewrite'] %}
|
||||||
rewrite {{ rewrite_match }}
|
rewrite {{ rewrite_match }}
|
||||||
@@ -31,10 +35,14 @@ data:
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
.:53 {
|
.:53 {
|
||||||
{% if coredns_additional_configs is defined %}
|
{% if coredns_additional_configs is defined %}
|
||||||
{{ coredns_additional_configs | indent(width=8, first=False) }}
|
{{ coredns_additional_configs | indent(width=8, first=False) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
errors
|
errors {
|
||||||
|
{% if coredns_additional_error_config is defined %}
|
||||||
|
{{ coredns_additional_error_config | indent(width=10, first=False) }}
|
||||||
|
{% endif %}
|
||||||
|
}
|
||||||
health {
|
health {
|
||||||
lameduck 5s
|
lameduck 5s
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user