Merge pull request #14 from fstern/master

Be able to configure a storage class for postgres
This commit is contained in:
Jeff Geerling
2019-12-03 14:35:19 -06:00
committed by GitHub
2 changed files with 13 additions and 0 deletions

View File

@@ -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_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
### Testing

View File

@@ -53,6 +53,10 @@ spec:
volumeClaimTemplates:
- metadata:
name: postgres
{% if tower_postgres_storage_class is defined %}
annotations:
volume.beta.kubernetes.io/storage-class: '{{ tower_postgres_storage_class }}'
{% endif %}
spec:
accessModes:
- ReadWriteOnce