mirror of
https://github.com/ansible/awx.git
synced 2026-05-22 16:27:42 -02:30
Add support for kubernetes tolerations, nodeSelector, and affinity
This commit is contained in:
committed by
Gabriel Totusek
parent
28e3625066
commit
f705eba7ed
@@ -32,6 +32,18 @@ spec:
|
||||
{% endif %}
|
||||
{% if management_cpu_limit is defined %}
|
||||
cpu: "{{ management_cpu_limit }}m"
|
||||
{% endif %}
|
||||
{% if tolerations is defined %}
|
||||
tolerations:
|
||||
{{ tolerations | to_nice_yaml(indent=2) | indent(width=4, indentfirst=True) }}
|
||||
{% endif %}
|
||||
{% if node_selector is defined %}
|
||||
nodeSelector:
|
||||
{{ node_selector | to_nice_yaml(indent=2) | indent(width=4, indentfirst=True) }}
|
||||
{% endif %}
|
||||
{% if affinity is defined %}
|
||||
affinity:
|
||||
{{ affinity | to_nice_yaml(indent=2) | indent(width=4, indentfirst=True) }}
|
||||
{% endif %}
|
||||
volumes:
|
||||
- name: {{ kubernetes_deployment_name }}-application-config
|
||||
|
||||
Reference in New Issue
Block a user