Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
f599a4a8
Commit
f599a4a8
authored
5 years ago
by
Matthew Mosesohn
Committed by
Kubernetes Prow Robot
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
force other resolvers to be secondary when using systemd-resolved (#5391)
Change-Id: I33d46c7e0c5374467e22c5a652b282d1703dea85
parent
e44b0727
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/kubernetes/preinstall/tasks/0040-set_facts.yml
+3
-3
3 additions, 3 deletions
roles/kubernetes/preinstall/tasks/0040-set_facts.yml
roles/kubernetes/preinstall/templates/resolved.conf.j2
+2
-6
2 additions, 6 deletions
roles/kubernetes/preinstall/templates/resolved.conf.j2
with
5 additions
and
9 deletions
roles/kubernetes/preinstall/tasks/0040-set_facts.yml
+
3
−
3
View file @
f599a4a8
...
...
@@ -137,11 +137,11 @@
set_fact
:
coredns_server
:
|-
{%- if dns_mode == 'coredns' and not dns_early|bool -%}
{{ [ skydns_server ]
+ upstream_dns_servers|default([])
}}
{{ [ skydns_server ] }}
{%- elif dns_mode == 'coredns_dual' and not dns_early|bool -%}
{{ [ skydns_server ] + [ skydns_server_secondary ]
+ upstream_dns_servers|default([])
}}
{{ [ skydns_server ] + [ skydns_server_secondary ] }}
{%- elif dns_mode == 'manual' and not dns_early|bool -%}
{{ ( manual_dns_server.split(',') | list)
+ upstream_dns_servers|default([])
}}
{{ ( manual_dns_server.split(',') | list) }}
{%- elif dns_early|bool -%}
{{ upstream_dns_servers|default([]) }}
{%- endif -%}
...
...
This diff is collapsed.
Click to expand it.
roles/kubernetes/preinstall/templates/resolved.conf.j2
+
2
−
6
View file @
f599a4a8
[Resolve]
{% if dns_late %}
DNS={{ ( coredns_server + nameservers|d([]) + cloud_resolver|d([])) | unique | join(' ') }}
{% else %}
DNS={{ ( nameservers|d([]) + cloud_resolver|d([])) | unique | join(' ') }}
{% endif %}
#FallbackDNS=
DNS={{ 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
#MulticastDNS=no
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment