2024-01-13 23:09:47 +00:00
|
|
|
apiVersion: postgresql.cnpg.io/v1
|
|
|
|
kind: Cluster
|
2023-06-30 21:22:44 +00:00
|
|
|
metadata:
|
2024-01-13 23:09:47 +00:00
|
|
|
name: gitea-db
|
|
|
|
namespace: gitea
|
2023-06-30 21:22:44 +00:00
|
|
|
|
|
|
|
spec:
|
2024-01-19 23:28:51 +00:00
|
|
|
instances: 2
|
2024-01-13 23:09:47 +00:00
|
|
|
|
|
|
|
storage:
|
|
|
|
size: 1Gi
|
2024-11-11 12:45:31 +00:00
|
|
|
storageClass: redundant-storage-class
|
2024-01-13 23:09:47 +00:00
|
|
|
|
|
|
|
bootstrap:
|
|
|
|
initdb:
|
|
|
|
database: gitea
|
|
|
|
owner: gitea
|
|
|
|
secret:
|
|
|
|
name: gitea-db
|
|
|
|
|
2023-06-30 21:22:44 +00:00
|
|
|
postgresql:
|
2024-01-13 23:09:47 +00:00
|
|
|
pg_hba:
|
|
|
|
- host all all all md5
|
|
|
|
|
2024-12-01 22:20:02 +00:00
|
|
|
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
|
|
|
|
|
2023-06-30 21:22:44 +00:00
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 100m
|
|
|
|
memory: 100Mi
|
|
|
|
limits:
|
|
|
|
cpu: 500m
|
|
|
|
memory: 500Mi
|