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
a3d3f27a
Unverified
Commit
a3d3f27a
authored
4 years ago
by
Lee Spottiswood
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
allow dns autoscaler limits to be specified via variables (#6020)
parent
72b68c7f
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/defaults/main.yml
+4
-0
4 additions, 0 deletions
roles/kubernetes-apps/ansible/defaults/main.yml
roles/kubernetes-apps/ansible/templates/dns-autoscaler.yml.j2
+2
-2
2 additions, 2 deletions
...s/kubernetes-apps/ansible/templates/dns-autoscaler.yml.j2
with
6 additions
and
2 deletions
roles/kubernetes-apps/ansible/defaults/main.yml
+
4
−
0
View file @
a3d3f27a
...
@@ -15,6 +15,10 @@ nodelocaldns_cpu_requests: 100m
...
@@ -15,6 +15,10 @@ nodelocaldns_cpu_requests: 100m
nodelocaldns_memory_limit
:
170Mi
nodelocaldns_memory_limit
:
170Mi
nodelocaldnsdns_memory_requests
:
70Mi
nodelocaldnsdns_memory_requests
:
70Mi
# Limits for dns-autoscaler
dns_autoscaler_cpu_requests
:
20m
dns_autoscaler_memory_requests
:
10Mi
# Netchecker
# Netchecker
deploy_netchecker
:
false
deploy_netchecker
:
false
netchecker_port
:
31081
netchecker_port
:
31081
...
...
This diff is collapsed.
Click to expand it.
roles/kubernetes-apps/ansible/templates/dns-autoscaler.yml.j2
+
2
−
2
View file @
a3d3f27a
...
@@ -66,8 +66,8 @@ spec:
...
@@ -66,8 +66,8 @@ spec:
image: "{{ dnsautoscaler_image_repo }}:{{ dnsautoscaler_image_tag }}"
image: "{{ dnsautoscaler_image_repo }}:{{ dnsautoscaler_image_tag }}"
resources:
resources:
requests:
requests:
cpu:
"20m"
cpu:
{{ dns_autoscaler_cpu_requests }}
memory:
"10Mi"
memory:
{{ dns_autoscaler_memory_requests }}
command:
command:
- /cluster-proportional-autoscaler
- /cluster-proportional-autoscaler
- --namespace=kube-system
- --namespace=kube-system
...
...
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