mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 07:17:40 -02:30
Add support for kubernetes tolerations, nodeSelector, and affinity
This commit is contained in:
committed by
Gabriel Totusek
parent
28e3625066
commit
f705eba7ed
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user