fix postgres

This commit is contained in:
2025-03-16 00:36:45 +01:00
parent fa5ea6d902
commit ace7df8f30
2 changed files with 45 additions and 3 deletions

View File

@@ -0,0 +1,34 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: postgres # Rename to "postgres" to match the Helm release
namespace: argocd
spec:
project: default
source:
repoURL: "https://charts.bitnami.com/bitnami"
chart: "postgresql"
targetRevision: "16.0.0"
helm:
releaseName: "postgres" # Match the ArgoCD application name
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"
secretKeys:
adminPasswordKey: "postgres-password"
destination:
server: "https://kubernetes.default.svc"
namespace: postgres