35 lines
951 B
YAML
35 lines
951 B
YAML
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
|