Add support for kubernetes tolerations, nodeSelector, and affinity

This commit is contained in:
Gabriel Totusek
2019-05-02 11:43:01 -07:00
committed by Gabriel Totusek
parent 28e3625066
commit f705eba7ed
4 changed files with 75 additions and 17 deletions

View File

@@ -324,6 +324,18 @@ spec:
{% endif %}
{% if memcached_cpu_limit is defined %}
cpu: "{{ memcached_cpu_limit }}m"
{% endif %}
{% if tolerations is defined %}
tolerations:
{{ tolerations | to_nice_yaml(indent=2) | indent(width=8, indentfirst=True) }}
{% endif %}
{% if node_selector is defined %}
nodeSelector:
{{ node_selector | to_nice_yaml(indent=2) | indent(width=8, indentfirst=True) }}
{% endif %}
{% if affinity is defined %}
affinity:
{{ affinity | to_nice_yaml(indent=2) | indent(width=8, indentfirst=True) }}
{% endif %}
volumes:
{% if ca_trust_dir is defined %}