From a96bae324d892b4496a236ff35c1d5ab9b59e221 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=98eho=C5=99?= Date: Fri, 17 May 2024 21:54:35 +0200 Subject: [PATCH] add cloudnative-pg --- .../cloudnative-pg/cluster/cluster16.yaml | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/kubernetes/main/apps/database/cloudnative-pg/cluster/cluster16.yaml b/kubernetes/main/apps/database/cloudnative-pg/cluster/cluster16.yaml index a380368a..3e20d431 100644 --- a/kubernetes/main/apps/database/cloudnative-pg/cluster/cluster16.yaml +++ b/kubernetes/main/apps/database/cloudnative-pg/cluster/cluster16.yaml @@ -72,22 +72,22 @@ spec: # cluster when recovering from an existing cnpg cluster bootstrap: initdb: - # User for onedr0p/postgres-init database inital creation - owner: postgres-db-manager - # https://cloudnative-pg.io/documentation/1.19/cloudnative-pg.v1/#postgresql-cnpg-io-v1-BootstrapInitDB - postInitApplicationSQL: - # Assign Postgres DB Manager permissions - # https://www.atlassian.com/data/admin/how-to-change-a-user-to-superuser-in-postgresql - - ALTER USER postgres-db-manager WITH CREATEDB; - - ALTER USER postgres-db-manager WITH CREATEROLE; + # # User for onedr0p/postgres-init database inital creation + # owner: postgres-db-manager + # # https://cloudnative-pg.io/documentation/1.19/cloudnative-pg.v1/#postgresql-cnpg-io-v1-BootstrapInitDB + # postInitApplicationSQL: + # # Assign Postgres DB Manager permissions + # # https://www.atlassian.com/data/admin/how-to-change-a-user-to-superuser-in-postgresql + # - ALTER USER postgres-db-manager WITH CREATEDB; + # - ALTER USER postgres-db-manager WITH CREATEROLE; # Enable PostGIS and TimescaleDB extensions postInitTemplateSQL: - - CREATE EXTENSION IF NOT EXISTS postgis; - - CREATE EXTENSION IF NOT EXISTS postgis_topology; - - CREATE EXTENSION IF NOT EXISTS fuzzystrmatch; - - CREATE EXTENSION IF NOT EXISTS postgis_tiger_geocoder; - - CREATE EXTENSION IF NOT EXISTS timescaledb; - - CREATE EXTENSION IF NOT EXISTS timescaledb_toolkit; + - CREATE EXTENSION postgis; + - CREATE EXTENSION postgis_topology; + - CREATE EXTENSION fuzzystrmatch; + - CREATE EXTENSION postgis_tiger_geocoder; + - CREATE EXTENSION timescaledb; + - CREATE EXTENSION timescaledb_toolkit; secret: name: postgres-secret # recovery: