mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-25 23:16:05 -03:30
Add CoreDNS endpoint_pod_names option (#5012)
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
54b1fe83f3
commit
92bfcf0467
@@ -14,6 +14,9 @@ data:
|
||||
ready
|
||||
kubernetes {{ dns_domain }} in-addr.arpa ip6.arpa {
|
||||
pods insecure
|
||||
{% if enable_coredns_k8s_endpoint_pod_names %}
|
||||
endpoint_pod_names
|
||||
{% endif %}
|
||||
{% if resolvconf_mode == 'host_resolvconf' and upstream_dns_servers is defined and upstream_dns_servers|length > 0 %}
|
||||
upstream {{ upstream_dns_servers|join(' ') }}
|
||||
{% else %}
|
||||
|
||||
@@ -92,6 +92,8 @@ dns_servers: "{{kube_dns_servers[dns_mode]}}"
|
||||
enable_coredns_k8s_external: false
|
||||
coredns_k8s_external_zone: k8s_external.local
|
||||
|
||||
enable_coredns_k8s_endpoint_pod_names: false
|
||||
|
||||
# Kubernetes configuration dirs and system namespace.
|
||||
# Those are where all the additional config stuff goes
|
||||
# the kubernetes normally puts in /srv/kubernetes.
|
||||
|
||||
Reference in New Issue
Block a user