postgres todos

This commit is contained in:
2024-06-18 15:47:02 -04:00
parent 715bac1dd4
commit 2316ff11b6
7 changed files with 68 additions and 6 deletions

View File

@@ -0,0 +1,35 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
name: todo-postgresql
namespace: todo
spec:
chart:
spec:
chart: postgresql
version: 15.x
sourceRef:
kind: HelmRepository
name: bitnami
namespace: flux-system
interval: 15m
timeout: 5m
releaseName: postgresql
values:
global:
storageClass: "longhorn"
postgresql:
auth:
username: "todo"
database: "todos"
existingSecret: "database-secrets"
secretKeys:
adminPasswordKey: "ADMIN_PASSWORD"
userPasswordKey: "USER_PASSWORD"
replicationPasswordKey: "REPLICATION_PASSWORD"
primary:
persistence:
size: 1Gi
readReplicas:
persistence:
size: 1Gi