50 lines
897 B
YAML
50 lines
897 B
YAML
apiVersion: postgresql.cnpg.io/v1
|
|
kind: Cluster
|
|
metadata:
|
|
name: gitea-db
|
|
namespace: gitea
|
|
|
|
spec:
|
|
instances: 2
|
|
|
|
storage:
|
|
size: 1Gi
|
|
storageClass: redundant-storage-class
|
|
|
|
bootstrap:
|
|
initdb:
|
|
database: gitea
|
|
owner: gitea
|
|
secret:
|
|
name: gitea-db
|
|
|
|
postgresql:
|
|
pg_hba:
|
|
- host all all all md5
|
|
|
|
backup:
|
|
barmanObjectStore:
|
|
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: 100Mi
|
|
limits:
|
|
cpu: 500m
|
|
memory: 500Mi
|