kubespray 2.24 추가
This commit is contained in:
15
roles/kubernetes/preinstall/templates/resolved.conf.j2
Normal file
15
roles/kubernetes/preinstall/templates/resolved.conf.j2
Normal file
@@ -0,0 +1,15 @@
|
||||
[Resolve]
|
||||
{% if not dns_early and dns_late %}
|
||||
DNS={{ ([nodelocaldns_ip] if enable_nodelocaldns else coredns_server )| list | join(' ') }}
|
||||
{% endif %}
|
||||
FallbackDNS={{ ( upstream_dns_servers|d([]) + nameservers|d([]) + cloud_resolver|d([])) | unique | join(' ') }}
|
||||
{% if remove_default_searchdomains and searchdomains|default([])|length != 0 %}
|
||||
Domains={{ searchdomains|default([]) | join(' ') }}
|
||||
{% else %}
|
||||
Domains={{ ([ 'default.svc.' + dns_domain, 'svc.' + dns_domain ] + searchdomains|default([])) | join(' ') }}
|
||||
{% endif %}
|
||||
DNSSEC=no
|
||||
Cache=no-negative
|
||||
{% if systemd_resolved_disable_stub_listener | bool %}
|
||||
DNSStubListener=no
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user