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
eb73f1d2
Unverified
Commit
eb73f1d2
authored
1 year ago
by
刘旭
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
support disable dns autoscaler when use CoreDNS (#10608)
parent
9a31f328
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/kubernetes-apps/ansible/tasks/coredns.yml
+2
-0
2 additions, 0 deletions
roles/kubernetes-apps/ansible/tasks/coredns.yml
roles/kubespray-defaults/defaults/main/main.yml
+3
-0
3 additions, 0 deletions
roles/kubespray-defaults/defaults/main/main.yml
with
5 additions
and
0 deletions
roles/kubernetes-apps/ansible/tasks/coredns.yml
+
2
−
0
View file @
eb73f1d2
...
...
@@ -21,6 +21,7 @@
when
:
-
dns_mode in ['coredns', 'coredns_dual']
-
inventory_hostname == groups['kube_control_plane'][0]
-
enable_dns_autoscaler or item.name != 'dns-autoscaler'
tags
:
-
coredns
...
...
@@ -40,5 +41,6 @@
when
:
-
dns_mode == 'coredns_dual'
-
inventory_hostname == groups['kube_control_plane'][0]
-
enable_dns_autoscaler or item.name != 'dns-autoscaler'
tags
:
-
coredns
This diff is collapsed.
Click to expand it.
roles/kubespray-defaults/defaults/main/main.yml
+
3
−
0
View file @
eb73f1d2
...
...
@@ -99,6 +99,9 @@ docker_dns_options:
# Can be coredns, coredns_dual, manual, or none
dns_mode
:
coredns
# Enable dns autoscaler
enable_dns_autoscaler
:
true
# Enable nodelocal dns cache
enable_nodelocaldns
:
true
enable_nodelocaldns_secondary
:
false
...
...
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