Skip to content

Instantly share code, notes, and snippets.

@clintkev251
Created November 4, 2025 14:57
Show Gist options
  • Save clintkev251/aff702a13785afa0bc99cbd0c67b170b to your computer and use it in GitHub Desktop.
Save clintkev251/aff702a13785afa0bc99cbd0c67b170b to your computer and use it in GitHub Desktop.
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: cnpg-immich
namespace: immich
labels:
velero.io/exclude-from-backup: "true"
spec:
imageName: ghcr.io/tensorchord/cloudnative-vectorchord:14.18-0.3.0
instances: 3
postgresql:
shared_preload_libraries:
- "vchord.so"
bootstrap:
recovery:
source: cluster-pg96
resources:
requests:
cpu: 30m
memory: 400Mi
storage:
size: 8Gi
storageClass: local-path
monitoring:
enablePodMonitor: true
externalClusters:
- name: cluster-pg96
barmanObjectStore:
serverName: cnpg-immich
destinationPath: "s3://cnpg-bucket-0d5c1ffc-45c8-4b19-ad45-2f375b2a053b/"
endpointURL: http://rook-ceph-rgw-object-store.rook-ceph.svc
s3Credentials:
accessKeyId:
name: cnpg-s3-creds
key: ACCESS_KEY
secretAccessKey:
name: cnpg-s3-creds
key: SECRET_KEY
backup:
retentionPolicy: "30d"
barmanObjectStore:
destinationPath: "s3://cnpg-bucket-0d5c1ffc-45c8-4b19-ad45-2f375b2a053b/"
endpointURL: http://rook-ceph-rgw-object-store.rook-ceph.svc
s3Credentials:
accessKeyId:
name: cnpg-s3-creds
key: ACCESS_KEY
secretAccessKey:
name: cnpg-s3-creds
key: SECRET_KEY
---
apiVersion: postgresql.cnpg.io/v1
kind: ScheduledBackup
metadata:
name: cnpg-immich-backup
namespace: immich
spec:
schedule: "0 33 16 * * *"
backupOwnerReference: self
cluster:
name: cnpg-immich
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment