feat(coredns): Forward extra domains to coredns kubernetes plugin (#9635)
parent
a8cef962e2
commit
0d5bcd3e20
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue