Bitwarden/manifests/database.yaml

53 lines
957 B
YAML
Raw Permalink Normal View History

apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: vaultwarden-db
namespace: vaultwarden
2024-01-15 07:26:56 +00:00
spec:
instances: 3
storage:
size: 1Gi
storageClass: local-path
bootstrap:
initdb:
database: vaultwarden
owner: vaultwarden
secret:
name: vaultwarden-db
postgresql:
pg_hba:
- host all all all md5
2024-01-15 07:26:56 +00:00
backup:
barmanObjectStore:
destinationPath: "s3://halis/cloudnativepg"
endpointURL: https://s3.halia.dev
2024-01-15 07:26:56 +00:00
s3Credentials:
accessKeyId:
name: s3-secret
key: AWS_ACCESS_KEY_ID
2024-01-15 07:26:56 +00:00
secretAccessKey:
name: s3-secret
key: AWS_SECRET_ACCESS_KEY
2024-01-15 07:26:56 +00:00
region:
name: s3-secret
key: AWS_REGION
2024-01-15 07:26:56 +00:00
wal:
compression: gzip
maxParallel: 8
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 500m
memory: 500Mi
monitoring:
enablePodMonitor: true