feat: add postgres manifests
This commit is contained in:
parent
8faf38cefb
commit
2da0e4b8f9
2 changed files with 52 additions and 0 deletions
11
manifests/postgres/postgres-superuser-credentials.yaml
Normal file
11
manifests/postgres/postgres-superuser-credentials.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: postgres-superuser-credentials
|
||||
namespace: postgres
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "1"
|
||||
type: kubernetes.io/basic-auth
|
||||
stringData:
|
||||
username: postgres
|
||||
password: postgres
|
||||
41
manifests/postgres/postgres.yaml
Normal file
41
manifests/postgres/postgres.yaml
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
apiVersion: postgresql.cnpg.io/v1
|
||||
kind: Cluster
|
||||
metadata:
|
||||
name: postgres
|
||||
namespace: postgres
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "10"
|
||||
spec:
|
||||
imageName: ghcr.io/cloudnative-pg/postgresql:16.2
|
||||
instances: 1
|
||||
primaryUpdateStrategy: unsupervised
|
||||
primaryUpdateMethod: switchover
|
||||
superuserSecret:
|
||||
name: postgres-superuser-credentials
|
||||
storage:
|
||||
storageClass: hcloud-volumes
|
||||
size: 10Gi
|
||||
resources:
|
||||
limits:
|
||||
cpu: "1"
|
||||
memory: 2Gi
|
||||
requests:
|
||||
cpu: "1"
|
||||
memory: 2Gi
|
||||
# bootstrap:
|
||||
# initdb:
|
||||
# database: dataproxy
|
||||
# owner: dataproxy
|
||||
# secret:
|
||||
# name: app-user-credentials
|
||||
## Postgres configuration ##
|
||||
# Enable 'postgres' superuser
|
||||
enableSuperuserAccess: true
|
||||
# Postgres instance parameters
|
||||
postgresql:
|
||||
parameters:
|
||||
max_connections: "500"
|
||||
# max_slot_wal_keep_size: "10GB"
|
||||
# wal_keep_size: "5GB"
|
||||
# monitoring:
|
||||
# enablePodMonitor: true
|
||||
Reference in a new issue