Skip to content

Commit

Permalink
allow dns autoscaler limits to be specified via variables
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4c6565 committed Apr 28, 2020
1 parent 28333d4 commit 6175ba6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions roles/kubernetes-apps/ansible/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ nodelocaldns_cpu_requests: 100m
nodelocaldns_memory_limit: 170Mi
nodelocaldnsdns_memory_requests: 70Mi

# Limits for dns-autoscaler
dns_autoscaler_cpu_requests: 20m
dns_autoscaler_memory_requests: 10Mi

# Netchecker
deploy_netchecker: false
netchecker_port: 31081
Expand Down
4 changes: 2 additions & 2 deletions roles/kubernetes-apps/ansible/templates/dns-autoscaler.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ spec:
image: "{{ dnsautoscaler_image_repo }}:{{ dnsautoscaler_image_tag }}"
resources:
requests:
cpu: "20m"
memory: "10Mi"
cpu: {{ dns_autoscaler_cpu_requests }}
memory: {{ dns_autoscaler_memory_requests }}
command:
- /cluster-proportional-autoscaler
- --namespace=kube-system
Expand Down

0 comments on commit 6175ba6

Please sign in to comment.