initial working but bare setup

This commit is contained in:
2025-11-24 20:59:33 +01:00
commit 42b8056e27
8 changed files with 363 additions and 0 deletions

28
base/postgres.yaml Normal file
View File

@@ -0,0 +1,28 @@
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: osm-postgresql
spec:
instances: 1
imageName: ghcr.io/cloudnative-pg/postgis:18-3.6-system-trixie
bootstrap:
initdb:
owner: osm
database: osm
postInitTemplateSQL:
- CREATE EXTENSION postgis;
# - CREATE EXTENSION postgis_topology;
# - CREATE EXTENSION fuzzystrmatch;
# - CREATE EXTENSION postgis_tiger_geocoder;
# - CREATE EXTENSION hstore;
storage:
size: 10Gi
pvcTemplate:
accessModes:
- ReadWriteOnce
storageClassName: nfs-client
volumeMode: Filesystem