OpenShift PostgreSQL: Difference between revisions
Jump to navigation
Jump to search
Line 22: | Line 22: | ||
==Create the User and the Database== | ==Create the User and the Database== | ||
Log into the pod: | |||
oc rsh <''postgres-pod-name''> | |||
createdb <''dbname''> | |||
The user is already created. | |||
==Activate the Readiness Probe== | ==Activate the Readiness Probe== |
Revision as of 03:18, 26 November 2017
Internal
Installation
Create OpenShift Infrastructure
You can use the following generic Postgresql template: https://github.com/NovaOrdis/playground/blob/master/openshift/auxiliary-tools/generic-postgresql.yaml
Copy it locally. Normally, you should not need to modify it manually, unless you want to use newer versions.
Make sure that a persistent volume 1Gi or larger is available for binding.
oc process -f ./generic-postgresql.yaml \ --param APPLICATION_NAME=... \ --param POSTGRESQL_USER=... \ --param POSTGRESQL_PASSWORD=... \ --param POSTGRESQL_DATABASE=... \ | oc create -f -
Create the User and the Database
Log into the pod:
oc rsh <postgres-pod-name> createdb <dbname>
The user is already created.