Skip to content

Commit

Permalink
add cloudnative-pg
Browse files Browse the repository at this point in the history
  • Loading branch information
prehor committed May 17, 2024
1 parent 50f8850 commit a96bae3
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions kubernetes/main/apps/database/cloudnative-pg/cluster/cluster16.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a96bae3

Please sign in to comment.