cloudnativepg: create separate cluster for immich
This commit is contained in:
49
postgres/config/clusters/main.yaml
Normal file
49
postgres/config/clusters/main.yaml
Normal file
@@ -0,0 +1,49 @@
|
||||
apiVersion: postgresql.cnpg.io/v1
|
||||
kind: Cluster
|
||||
metadata:
|
||||
name: weyma-pgsql
|
||||
spec:
|
||||
instances: 3
|
||||
|
||||
imageName: ghcr.io/tensorchord/cloudnative-pgvecto.rs:16.5-v0.3.0
|
||||
|
||||
storage:
|
||||
size: 20Gi
|
||||
storageClass: rook-ceph-block
|
||||
|
||||
backup:
|
||||
barmanObjectStore:
|
||||
destinationPath: "s3://weyma-talos-shared-pgsql-backup/"
|
||||
endpointURL: http://10.105.15.20:9000
|
||||
s3Credentials:
|
||||
accessKeyId:
|
||||
key: s3AccessKey
|
||||
name: s3-backup-creds
|
||||
secretAccessKey:
|
||||
key: s3SecretKey
|
||||
name: s3-backup-creds
|
||||
|
||||
inheritedMetadata:
|
||||
labels:
|
||||
metrics_enabled: "true"
|
||||
|
||||
postgresql:
|
||||
shared_preload_libraries:
|
||||
- "vectors.so"
|
||||
|
||||
managed:
|
||||
roles:
|
||||
- name: williamp
|
||||
ensure: present
|
||||
comment: William Peebles
|
||||
login: true
|
||||
superuser: true
|
||||
passwordSecret:
|
||||
name: williamp-auth
|
||||
- name: immich
|
||||
ensure: present
|
||||
comment: Immich
|
||||
login: true
|
||||
superuser: false
|
||||
passwordSecret:
|
||||
name: immich-auth
|
||||
Reference in New Issue
Block a user