apiVersion: postgresql.cnpg.io/v1 kind: Cluster metadata: name: mastodon-db namespace: mastodon spec: imageName: ghcr.io/tensorchord/cloudnative-pgvecto.rs:16.5-v0.3.0 instances: 1 storage: size: 1Gi storageClass: local-path bootstrap: recovery: source: mastodon-db postgresql: pg_hba: - host all all all md5 externalClusters: - name: mastodon-db barmanObjectStore: serverName: mastodon-db destinationPath: "s3://halis/cloudnativepg" endpointURL: https://s3.halia.dev s3Credentials: accessKeyId: name: s3-secret key: AWS_ACCESS_KEY_ID secretAccessKey: name: s3-secret key: AWS_SECRET_ACCESS_KEY region: name: s3-secret key: AWS_REGION wal: compression: gzip maxParallel: 8 resources: requests: cpu: 100m memory: 512Mi limits: cpu: 500m memory: 1Gi