Customizable template for OpenShift PostgreSQL deployment

`oc new-app --template=postgresql-persistent` has been kind of a pain. It would attempt to create a Persistent Volume, but does not allow you to specify the storageClass.

This code assumes that a Persistent Volume is already available and will fail with a helpful error message if it is not.

Signed-off-by: Shane McDonald <me@shanemcd.com>
This commit is contained in:
Shane McDonald
2018-03-28 16:25:24 -04:00
parent 84e3bcc031
commit 1ef7d73bc9
4 changed files with 253 additions and 18 deletions

View File

@@ -1,6 +1,4 @@
---
rabbitmq_version: "3.7.4"
awx_web_mem_request: 1
awx_web_cpu_request: 500
@@ -12,3 +10,8 @@ awx_rabbitmq_cpu_request: 500
awx_memcached_mem_request: 1
awx_memcached_cpu_request: 500
rabbitmq_version: "3.7.4"
openshift_pg_emptydir: no
openshift_pg_pvc_name: postgresql