Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
d3101d65
Unverified
Commit
d3101d65
authored
1 year ago
by
Elias-elastisys
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/kubernetes-apps/ansible/defaults/main.yml
+2
-0
2 additions, 0 deletions
roles/kubernetes-apps/ansible/defaults/main.yml
roles/kubernetes-apps/ansible/templates/coredns-config.yml.j2
+12
-4
12 additions, 4 deletions
...s/kubernetes-apps/ansible/templates/coredns-config.yml.j2
with
14 additions
and
4 deletions
roles/kubernetes-apps/ansible/defaults/main.yml
+
2
−
0
View file @
d3101d65
...
...
@@ -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:
...
...
This diff is collapsed.
Click to expand it.
roles/kubernetes-apps/ansible/templates/coredns-config.yml.j2
+
12
−
4
View file @
d3101d65
...
...
@@ -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
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment