Skip to content

Commit

Permalink
Allow overriding CoreDNS cluster zone cache plugin block
Browse files Browse the repository at this point in the history
  • Loading branch information
Tristan971 committed Jan 30, 2022
1 parent c40b43d commit 859a8bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions roles/kubernetes-apps/ansible/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ enable_coredns_reverse_dns_lookups: true
coredns_ordinal_suffix: ""
# dns_extra_tolerations: [{effect: NoSchedule, operator: "Exists"}]
coredns_deployment_nodeselector: "kubernetes.io/os: linux"
coredns_cluster_zone_cache_block: |
cache 30
# nodelocaldns
nodelocaldns_cpu_requests: 100m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ data:
{% if enable_coredns_k8s_external %}
k8s_external {{ coredns_k8s_external_zone }}
{% endif %}
cache 30
{{ coredns_cluster_zone_cache_block | indent(width=8, first=False) }}
loop
reload
loadbalance
Expand Down

0 comments on commit 859a8bc

Please sign in to comment.