update postgres

This commit is contained in:
2025-03-16 00:12:04 +01:00
parent f082695652
commit 06c05568e8

View File

@@ -1,7 +1,7 @@
apiVersion: argoproj.io/v1alpha1 apiVersion: argoproj.io/v1alpha1
kind: Application kind: Application
metadata: metadata:
name: postgres name: postgresql
namespace: argocd namespace: argocd
spec: spec:
project: default project: default
@@ -10,8 +10,8 @@ spec:
chart: "postgresql" chart: "postgresql"
targetRevision: "16.0.0" targetRevision: "16.0.0"
helm: helm:
releaseName: "postgresql" # Ensures this Helm release is managed inside "postgres" releaseName: "postgresql"
values: | valueObject:
global: global:
storageClass: longhorn storageClass: longhorn
primary: primary:
@@ -24,16 +24,11 @@ spec:
enabled: true enabled: true
storageClass: longhorn storageClass: longhorn
size: 20Gi 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: destination:
server: "https://kubernetes.default.svc" server: "https://kubernetes.default.svc"
namespace: postgres namespace: postgres
syncPolicy:
automated:
selfHeal: true
ignoreDifferences:
- group: ""
kind: Secret
name: postgresql
namespace: postgres
jsonPointers:
- /data