Persistent template
A single PostgreSQL server in your project, deployed from the
postgresql-persistent template. Data lives on a persistent volume; you operate
the database.
No credit card required · Free during the Alpha phase · View pricing
A relational database for applications in the same project.
PostgreSQL for transactional workloads — SQL, JSONB, full-text search and the extensions shipped in the image.
One server per template instance. Suited to development, CI, test environments and workloads that tolerate a restart.
You own backups, upgrades and tuning. For PostgreSQL operated by the platform, with replication and failover, see Databases.
An OpenShift template: one set of parameters, processed into the objects below.
postgresql-persistent plus your parameters
User, password, database name
Sized by VOLUME_CAPACITY, mounted as the data directory
One pod, Recreate strategy, port 5432
oc new-app --template=postgresql-persistent with
-p parameters. List every parameter with oc process --parameters.postgresql-ephemeral
variant keeps data in the pod's filesystem and loses it on every restart.# see the template's parameters $ oc process --parameters postgresql-persistent -n openshift # deploy with a 10 GiB data volume $ oc new-app --template=postgresql-persistent \ -p DATABASE_SERVICE_NAME=postgresql \ -p POSTGRESQL_DATABASE=app \ -p VOLUME_CAPACITY=10Gi # open a psql session in the pod $ oc rsh deployment/postgresql psql
What the template does not do for you.
pg_dump, run through
oc exec or a CronJob, and store the dumps outside the database's own volume.POSTGRESQL_VERSION. A major-version change needs a migration of the data
directory: dump and restore, or the image's POSTGRESQL_UPGRADE mode for a step
from the previous major version. Take a dump first.MEMORY_LIMIT or on the workload.Standard Kubernetes objects in your own project.
postgresql:5432 (the DATABASE_SERVICE_NAME). No Route is created, so
the database is not reachable from outside the cluster.oc set env --from=secret/postgresql instead of copying them.From the console's database catalogue, or with oc new-app --template=postgresql-persistent.
Hosted in the Netherlands · EU data residency · 100% renewable energy