adds pod limits

Signed-off-by: Corey Wanless <corey.wanless@wwt.com>
This commit is contained in:
Corey Wanless
2019-01-11 19:41:32 -06:00
parent e3872ebd58
commit aebeeb170e
3 changed files with 64 additions and 6 deletions

View File

@@ -17,6 +17,16 @@ spec:
- name: "{{ kubernetes_deployment_name }}-confd"
mountPath: "/etc/tower/conf.d/"
readOnly: true
resources:
{% if management_mem_limit is defined or management_cpu_limit is defined %}
limits:
{% endif %}
{% if management_mem_limit is defined %}
memory: "{{ management_mem_limit }}Gi"
{% endif %}
{% if management_cpu_limit is defined %}
cpu: "{{ management_cpu_limit }}m"
{% endif %}
volumes:
- name: {{ kubernetes_deployment_name }}-application-config
configMap: