From e3421ca02c12f759ac1374680b86e24e003c5ec0 Mon Sep 17 00:00:00 2001 From: Wade Barnes Date: Fri, 22 Feb 2019 08:45:21 -0800 Subject: [PATCH] EDIVORCE-83 - Migrate database storage - Increase storage - Migrate to gluster-file-db storage --- openshift/postgresql-deploy.dev.param | 2 +- openshift/postgresql-deploy.param | 2 +- openshift/postgresql-deploy.prod.param | 2 +- openshift/postgresql-deploy.test.param | 2 +- openshift/templates/postgresql/postgresql-deploy.yaml | 3 ++- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/openshift/postgresql-deploy.dev.param b/openshift/postgresql-deploy.dev.param index 54f936ea..c0457230 100644 --- a/openshift/postgresql-deploy.dev.param +++ b/openshift/postgresql-deploy.dev.param @@ -12,5 +12,5 @@ TAG_NAME=dev # POSTGRESQL_PASSWORD=[a-zA-Z0-9_~!@#$%^&*()-=<>,.?;:|]{16} # POSTGRESQL_ADMIN_PASSWORD=[a-zA-Z0-9_~!@#$%^&*()-=<>,.?;:|]{16} # MOUNT_PATH=/var/lib/pgsql/data -# PERSISTENT_VOLUME_SIZE=1Gi +# PERSISTENT_VOLUME_SIZE=5Gi # MEMORY_LIMIT=512Mi diff --git a/openshift/postgresql-deploy.param b/openshift/postgresql-deploy.param index 869eb883..0e9eb5d3 100644 --- a/openshift/postgresql-deploy.param +++ b/openshift/postgresql-deploy.param @@ -12,5 +12,5 @@ POSTGRESQL_USER=[a-zA-Z_][a-zA-Z0-9_]{10} POSTGRESQL_PASSWORD=[a-zA-Z0-9_~!@#$%^&*()-=<>,.?;:|]{16} POSTGRESQL_ADMIN_PASSWORD=[a-zA-Z0-9_~!@#$%^&*()-=<>,.?;:|]{16} MOUNT_PATH=/var/lib/pgsql/data -PERSISTENT_VOLUME_SIZE=1Gi +PERSISTENT_VOLUME_SIZE=5Gi MEMORY_LIMIT=512Mi diff --git a/openshift/postgresql-deploy.prod.param b/openshift/postgresql-deploy.prod.param index 7056de7f..e79469c9 100644 --- a/openshift/postgresql-deploy.prod.param +++ b/openshift/postgresql-deploy.prod.param @@ -12,5 +12,5 @@ TAG_NAME=prod # POSTGRESQL_PASSWORD=[a-zA-Z0-9_~!@#$%^&*()-=<>,.?;:|]{16} # POSTGRESQL_ADMIN_PASSWORD=[a-zA-Z0-9_~!@#$%^&*()-=<>,.?;:|]{16} # MOUNT_PATH=/var/lib/pgsql/data -# PERSISTENT_VOLUME_SIZE=1Gi +# PERSISTENT_VOLUME_SIZE=5Gi # MEMORY_LIMIT=512Mi diff --git a/openshift/postgresql-deploy.test.param b/openshift/postgresql-deploy.test.param index 61d3ae7d..3191611c 100644 --- a/openshift/postgresql-deploy.test.param +++ b/openshift/postgresql-deploy.test.param @@ -12,5 +12,5 @@ TAG_NAME=test # POSTGRESQL_PASSWORD=[a-zA-Z0-9_~!@#$%^&*()-=<>,.?;:|]{16} # POSTGRESQL_ADMIN_PASSWORD=[a-zA-Z0-9_~!@#$%^&*()-=<>,.?;:|]{16} # MOUNT_PATH=/var/lib/pgsql/data -# PERSISTENT_VOLUME_SIZE=1Gi +# PERSISTENT_VOLUME_SIZE=5Gi # MEMORY_LIMIT=512Mi diff --git a/openshift/templates/postgresql/postgresql-deploy.yaml b/openshift/templates/postgresql/postgresql-deploy.yaml index 2d70d296..3095b990 100644 --- a/openshift/templates/postgresql/postgresql-deploy.yaml +++ b/openshift/templates/postgresql/postgresql-deploy.yaml @@ -120,6 +120,7 @@ objects: resources: requests: storage: "${PERSISTENT_VOLUME_SIZE}" + storageClassName: gluster-file-db - kind: Secret apiVersion: v1 metadata: @@ -205,7 +206,7 @@ parameters: displayName: Persistent Volume Size description: The size of the persistent volume , e.g. 512Mi, 1Gi, 2Gi. required: true - value: 1Gi + value: 5Gi - name: MEMORY_LIMIT displayName: Memory Limit description: Maximum amount of memory the container can use.