mirror of
https://github.com/ansible/awx-operator.git
synced 2026-05-08 14:22:49 +00:00
Merge pull request #14 from fstern/master
Be able to configure a storage class for postgres
This commit is contained in:
@@ -64,6 +64,15 @@ If you would like to deploy AWX (the open source upstream of Tower) into your cl
|
|||||||
tower_task_image: ansible/awx_task:9.0.1
|
tower_task_image: ansible/awx_task:9.0.1
|
||||||
tower_web_image: ansible/awx_web:9.0.1
|
tower_web_image: ansible/awx_web:9.0.1
|
||||||
|
|
||||||
|
### Persistent storage for postfix
|
||||||
|
|
||||||
|
If you need to deploy your persistent storage for postfix to a specific storage class, you can override the default variables in the Tower `spec` with the variable `tower_postgres_storage_class` variable:
|
||||||
|
|
||||||
|
---
|
||||||
|
spec:
|
||||||
|
...
|
||||||
|
tower_postgres_storage_class: managed-nfs-storage
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
### Testing
|
### Testing
|
||||||
|
|||||||
@@ -53,6 +53,10 @@ spec:
|
|||||||
volumeClaimTemplates:
|
volumeClaimTemplates:
|
||||||
- metadata:
|
- metadata:
|
||||||
name: postgres
|
name: postgres
|
||||||
|
{% if tower_postgres_storage_class is defined %}
|
||||||
|
annotations:
|
||||||
|
volume.beta.kubernetes.io/storage-class: '{{ tower_postgres_storage_class }}'
|
||||||
|
{% endif %}
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
|
|||||||
Reference in New Issue
Block a user