Browse Source
[feature] Supprt enabling cpu limit in corends deployment (#10103)
pull/10106/head
Mohamed Omar Zaian
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
6 additions and
0 deletions
-
roles/kubernetes-apps/ansible/defaults/main.yml
-
roles/kubernetes-apps/ansible/templates/coredns-deployment.yml.j2
|
|
@ -1,5 +1,8 @@ |
|
|
|
--- |
|
|
|
# Limits for coredns |
|
|
|
|
|
|
|
# uncomment the line below to customize the DNS cpu limit value |
|
|
|
# dns_cpu_limit: 300m |
|
|
|
dns_memory_limit: 300Mi |
|
|
|
dns_cpu_requests: 100m |
|
|
|
dns_memory_requests: 70Mi |
|
|
|
|
|
@ -65,6 +65,9 @@ spec: |
|
|
|
# guaranteed class. Currently, this container falls into the |
|
|
|
# "burstable" category so the kubelet doesn't backoff from restarting it. |
|
|
|
limits: |
|
|
|
{% if dns_cpu_limit is defined %} |
|
|
|
cpu: {{ dns_cpu_limit }} |
|
|
|
{% endif %} |
|
|
|
memory: {{ dns_memory_limit }} |
|
|
|
requests: |
|
|
|
cpu: {{ dns_cpu_requests }} |
|
|
|