feat(secrets): add sealed secret for PostgreSQL credentials

This commit is contained in:
Janis Eccarius
2026-05-30 14:48:18 +02:00
parent 2d0c02b5e2
commit c530ee493b
7 changed files with 84 additions and 38 deletions
+12 -29
View File
@@ -1,32 +1,15 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: postgres
namespace: postgres
namespace: flux-system
spec:
interval: 1h
chart:
spec:
chart: postgresql
version: "16.x"
sourceRef:
kind: HelmRepository
name: bitnami
namespace: flux-system
values:
auth:
database: nowchess
existingSecret: postgres-credentials
secretKeys:
adminPasswordKey: postgres-password
primary:
persistence:
enabled: true
size: 5Gi
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 500m
memory: 512Mi
interval: 10m
retryInterval: 2m
sourceRef:
kind: GitRepository
name: gitops
namespace: flux-system
path: ./postgres/htwg-1
prune: true
timeout: 3m