mirror of
https://github.com/ansible/awx-operator.git
synced 2026-05-07 05:42:55 +00:00
Fix PostgreSQL resource requests
This commit is contained in:
@@ -148,10 +148,10 @@ tower_postgres_selector: ''
|
||||
# value: "AWX"
|
||||
# effect: "NoSchedule"
|
||||
tower_postgres_tolerations: ''
|
||||
|
||||
tower_postgres_resource_requirements:
|
||||
tower_postgres_storage_requirements:
|
||||
requests:
|
||||
storage: 8Gi
|
||||
tower_postgres_resource_requirements: []
|
||||
tower_postgres_storage_class: ''
|
||||
tower_postgres_data_path: '/var/lib/postgresql/data/pgdata'
|
||||
|
||||
|
||||
@@ -60,6 +60,7 @@ spec:
|
||||
- name: postgres
|
||||
mountPath: '{{ tower_postgres_data_path | dirname }}'
|
||||
subPath: '{{ tower_postgres_data_path | dirname | basename }}'
|
||||
resources: {{ tower_postgres_resource_requirements }}
|
||||
{% if tower_postgres_selector %}
|
||||
nodeSelector:
|
||||
{{ tower_postgres_selector | indent(width=8) }}
|
||||
@@ -77,7 +78,7 @@ spec:
|
||||
{% if tower_postgres_storage_class != '' %}
|
||||
storageClassName: '{{ tower_postgres_storage_class }}'
|
||||
{% endif %}
|
||||
resources: {{ tower_postgres_resource_requirements }}
|
||||
resources: {{ tower_postgres_storage_requirements }}
|
||||
|
||||
# Postgres Service.
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user