mirror of
https://github.com/nold360/hive-apps
synced 2024-11-20 04:29:26 +00:00
72 lines
1.5 KiB
YAML
72 lines
1.5 KiB
YAML
|
apiVersion: postgresql.cnpg.io/v1
|
||
|
kind: Cluster
|
||
|
metadata:
|
||
|
name: forgejo-db
|
||
|
namespace: forgejo
|
||
|
annotations:
|
||
|
cnpg.io/skipEmptyWalArchiveCheck: enabled
|
||
|
spec:
|
||
|
instances: 1
|
||
|
imageName: ghcr.io/cloudnative-pg/postgresql:15
|
||
|
|
||
|
bootstrap:
|
||
|
initdb:
|
||
|
database: app
|
||
|
owner: app
|
||
|
|
||
|
backup:
|
||
|
barmanObjectStore:
|
||
|
destinationPath: "s3://forgejo/"
|
||
|
endpointURL: "http://s3-minio.s3.svc.cluster.local:9000"
|
||
|
s3Credentials:
|
||
|
accessKeyId:
|
||
|
name: bucket
|
||
|
key: accesskey
|
||
|
secretAccessKey:
|
||
|
name: bucket
|
||
|
key: secretkey
|
||
|
wal:
|
||
|
compression: gzip
|
||
|
#encryption: AES256
|
||
|
data:
|
||
|
compression: gzip
|
||
|
#encryption: AES256
|
||
|
retentionPolicy: "90d"
|
||
|
#
|
||
|
resources:
|
||
|
requests:
|
||
|
memory: "64Mi"
|
||
|
cpu: "50m"
|
||
|
# limits:
|
||
|
# memory: "1Gi"
|
||
|
# cpu: "1"
|
||
|
|
||
|
storage:
|
||
|
size: 10Gi
|
||
|
|
||
|
externalClusters:
|
||
|
- name: forgejo-db
|
||
|
barmanObjectStore:
|
||
|
destinationPath: "s3://forgejo/"
|
||
|
endpointURL: "http://s3-minio.s3.svc.cluster.local:9000"
|
||
|
s3Credentials:
|
||
|
accessKeyId:
|
||
|
name: bucket
|
||
|
key: accesskey
|
||
|
secretAccessKey:
|
||
|
name: bucket
|
||
|
key: secretkey
|
||
|
wal:
|
||
|
maxParallel: 8
|
||
|
---
|
||
|
apiVersion: postgresql.cnpg.io/v1
|
||
|
kind: ScheduledBackup
|
||
|
metadata:
|
||
|
name: forgejo-db-backup
|
||
|
namespace: forgejo
|
||
|
spec:
|
||
|
schedule: "0 0 * * * *"
|
||
|
backupOwnerReference: self
|
||
|
cluster:
|
||
|
name: forgejo-db
|