Browse Source
[feature] Add coredns_additional_configs to handle any extra configurations for coredns deployment (#10023) (#10025)
pull/10063/head
Navid Nabavi
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
7 additions and
0 deletions
-
roles/kubernetes-apps/ansible/defaults/main.yml
-
roles/kubernetes-apps/ansible/templates/coredns-config.yml.j2
|
@ -13,6 +13,10 @@ coredns_ordinal_suffix: "" |
|
|
coredns_deployment_nodeselector: "kubernetes.io/os: linux" |
|
|
coredns_deployment_nodeselector: "kubernetes.io/os: linux" |
|
|
coredns_default_zone_cache_block: | |
|
|
coredns_default_zone_cache_block: | |
|
|
cache 30 |
|
|
cache 30 |
|
|
|
|
|
# coredns_additional_configs adds any extra configuration to coredns |
|
|
|
|
|
# coredns_additional_configs: | |
|
|
|
|
|
# whoami |
|
|
|
|
|
# local |
|
|
|
|
|
|
|
|
# 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: |
|
|
|
@ -31,6 +31,9 @@ data: |
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
.:53 { |
|
|
.:53 { |
|
|
|
|
|
{% if coredns_additional_configs is defined %} |
|
|
|
|
|
{{ coredns_additional_configs | indent(width=8, first=False) }} |
|
|
|
|
|
{% endif %} |
|
|
errors |
|
|
errors |
|
|
health { |
|
|
health { |
|
|
lameduck 5s |
|
|
lameduck 5s |
|
|