-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathrelease-db.yaml
53 lines (48 loc) · 1.14 KB
/
release-db.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: tt-rss-db
spec:
interval: 5m
chart:
spec:
chart: zalando-postgres-cluster
version: 4.1.1
interval: 15m
sourceRef:
kind: HelmRepository
name: angelnu-helm-charts
namespace: flux-system
#See https://github.com/angelnu/helm-charts/blob/main/charts/apps/zalando-postgres-cluster/values.yaml
values:
postgresql:
users:
postgres:
- superuser
- createdb
databases:
tt-rss: postgres
postgresql:
version: "15"
superuser: {}
# password: set in secret
persistentVolumes:
hostPath: /media/db/tt-rss
replicaNodes:
- ${CLUSTER_DB_NODE_0}
- ${CLUSTER_DB_NODE_1}
- ${CLUSTER_DB_NODE_2}
dumpBackup:
enabled: true
type: custom
volumeSpec:
nfs:
server: "${NFS_SERVER}"
path: "${NFS_KUBERNETES}/${CLUSTER_DB_BACKUP_PREFIX}/tt-rss"
subpath: "."
schedule: "@daily"
valuesFrom:
- kind: Secret
name: "tt-rss-helm-values"
valuesKey: postgres.yaml
optional: false