Browse Source
feat(coredns): Forward extra domains to coredns kubernetes plugin (#9635)
pull/9644/head
Marijn van der Giesen
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
7 additions and
1 deletions
-
docs/dns-stack.md
-
inventory/sample/group_vars/k8s_cluster/k8s-cluster.yml
-
roles/kubernetes-apps/ansible/templates/coredns-config.yml.j2
|
|
@ -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. |
|
|
|
|
|
|
|
### coredns_kubernetes_extra_domains |
|
|
|
|
|
|
|
Extra domains to be forwarded to the kubernetes coredns plugin. |
|
|
|
|
|
|
|
### coredns_external_zones |
|
|
|
|
|
|
|
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 |
|
|
|
# coredns_kubernetes_extra_opts: |
|
|
|
# - 'fallthrough example.local' |
|
|
|
# Forward extra domains to the coredns kubernetes plugin |
|
|
|
# coredns_kubernetes_extra_domains: '' |
|
|
|
|
|
|
|
# Can be docker_dns, host_resolvconf or none |
|
|
|
resolvconf_mode: host_resolvconf |
|
|
|
|
|
@ -36,7 +36,7 @@ data: |
|
|
|
lameduck 5s |
|
|
|
} |
|
|
|
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 |
|
|
|
{% if enable_coredns_k8s_endpoint_pod_names %} |
|
|
|
endpoint_pod_names |
|
|
|