Update templates to use new variable to allow postgres to run on OCP

This commit is contained in:
Tyler Auerbeck
2020-03-12 00:19:58 -04:00
parent a28837cd1e
commit 40726a804a
2 changed files with 6 additions and 2 deletions

View File

@@ -32,3 +32,5 @@ tower_postgres_pass: awxpass
tower_postgres_image: postgres:10
tower_postgres_storage_request: 8Gi
tower_postgres_storage_class: ''
tower_postgres_data_path: '/var/lib/postgresql/data/pgdata'

View File

@@ -43,13 +43,15 @@ spec:
secretKeyRef:
name: '{{ meta.name }}-postgres-pass'
key: password
- name: PGDATA
value: '{{ tower_postgres_data_path }}'
ports:
- containerPort: 3306
name: postgres
volumeMounts:
- name: postgres
mountPath: /var/lib/postgresql/data
subPath: data
mountPath: '{{ tower_postgres_data_path | dirname }}'
subPath: '{{ tower_postgres_data_path | dirname | basename }}'
volumeClaimTemplates:
- metadata:
name: postgres