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
|
|
|
|
storageClass: flat-storage-class
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2023-06-30 21:22:44 +00:00
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 100m
|
|
|
|
memory: 100Mi
|
|
|
|
limits:
|
|
|
|
cpu: 500m
|
|
|
|
memory: 500Mi
|