feat(coredns): Forward extra domains to coredns kubernetes plugin (#9635)

pull/9644/head
Marijn van der Giesen 2023-01-05 15:57:58 +01:00 committed by GitHub
parent a8cef962e2
commit 0d5bcd3e20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 1 deletions

View File

@ -60,6 +60,10 @@ By default, no other option than the ones hardcoded (see `roles/kubernetes-apps/
Custom options to be added to the kubernetes coredns plugin. Custom options to be added to the kubernetes coredns plugin.
### coredns_kubernetes_extra_domains
Extra domains to be forwarded to the kubernetes coredns plugin.
### coredns_external_zones ### coredns_external_zones
Array of optional external zones to coredns forward queries to. It's injected into Array of optional external zones to coredns forward queries to. It's injected into

View File

@ -211,6 +211,8 @@ enable_coredns_k8s_endpoint_pod_names: false
# Apply extra options to coredns kubernetes plugin # Apply extra options to coredns kubernetes plugin
# coredns_kubernetes_extra_opts: # coredns_kubernetes_extra_opts:
# - 'fallthrough example.local' # - 'fallthrough example.local'
# Forward extra domains to the coredns kubernetes plugin
# coredns_kubernetes_extra_domains: ''
# Can be docker_dns, host_resolvconf or none # Can be docker_dns, host_resolvconf or none
resolvconf_mode: host_resolvconf resolvconf_mode: host_resolvconf

View File

@ -36,7 +36,7 @@ data:
lameduck 5s lameduck 5s
} }
ready ready
kubernetes {{ dns_domain }} {% if enable_coredns_reverse_dns_lookups %}in-addr.arpa ip6.arpa {% endif %}{ kubernetes {{ dns_domain }} {% if coredns_kubernetes_extra_domains is defined %}{{ coredns_kubernetes_extra_domains }} {% endif %}{% if enable_coredns_reverse_dns_lookups %}in-addr.arpa ip6.arpa {% endif %}{
pods insecure pods insecure
{% if enable_coredns_k8s_endpoint_pod_names %} {% if enable_coredns_k8s_endpoint_pod_names %}
endpoint_pod_names endpoint_pod_names