Files
infra/deploy/postgres/postgres-app.yaml
2025-03-16 00:12:04 +01:00

35 lines
997 B
YAML

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: postgresql
namespace: argocd
spec:
project: default
source:
repoURL: "https://charts.bitnami.com/bitnami"
chart: "postgresql"
targetRevision: "16.0.0"
helm:
releaseName: "postgresql"
valueObject:
global:
storageClass: longhorn
primary:
persistence:
enabled: true
storageClass: longhorn
size: 20Gi
readReplicas:
persistence:
enabled: true
storageClass: longhorn
size: 20Gi
auth:
existingSecret: "postgresql" # Use the existing secret
username: "postgres" # Ensure username matches the expected value
secretKeys:
adminPasswordKey: "postgres-password" # Match your secret key
destination:
server: "https://kubernetes.default.svc"
namespace: postgres