Browse Source

fix resolved config (#8351)

pull/8360/head
Samuel Liu 2 years ago
committed by GitHub
parent
commit
157942a462
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. 2
      roles/kubernetes/preinstall/templates/resolved.conf.j2

2
roles/kubernetes/preinstall/templates/resolved.conf.j2

@ -1,5 +1,5 @@
[Resolve]
DNS={{ (nodelocaldns_ip |default(coredns_server) )| list | join(' ') }}
DNS={{ ([nodelocaldns_ip] if enable_nodelocaldns else coredns_server )| list | join(' ') }}
FallbackDNS={{ ( nameservers|d([]) + cloud_resolver|d([])) | unique | join(' ') }}
Domains={{ ([ 'default.svc.' + dns_domain, 'svc.' + dns_domain ] + searchdomains|default([])) | join(' ') }}
#LLMNR=no

Loading…
Cancel
Save