fix postgres
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
apiVersion: argoproj.io/v1alpha1
|
||||||
kind: Application
|
kind: Application
|
||||||
metadata:
|
metadata:
|
||||||
name: postgres # Rename to "postgres" to match the Helm release
|
name: postgres # Ensure name is "postgres" to match Helm release
|
||||||
namespace: argocd
|
namespace: argocd
|
||||||
spec:
|
spec:
|
||||||
project: default
|
project: default
|
||||||
@@ -10,7 +10,7 @@ spec:
|
|||||||
chart: "postgresql"
|
chart: "postgresql"
|
||||||
targetRevision: "16.0.0"
|
targetRevision: "16.0.0"
|
||||||
helm:
|
helm:
|
||||||
releaseName: "postgres" # Match the ArgoCD application name
|
releaseName: "postgres"
|
||||||
valueObject:
|
valueObject:
|
||||||
global:
|
global:
|
||||||
storageClass: longhorn
|
storageClass: longhorn
|
||||||
@@ -25,10 +25,18 @@ spec:
|
|||||||
storageClass: longhorn
|
storageClass: longhorn
|
||||||
size: 20Gi
|
size: 20Gi
|
||||||
auth:
|
auth:
|
||||||
existingSecret: "postgresql" # Use the existing secret
|
existingSecret: "postgresql"
|
||||||
username: "postgres"
|
username: "postgres"
|
||||||
secretKeys:
|
secretKeys:
|
||||||
adminPasswordKey: "postgres-password"
|
adminPasswordKey: "postgres-password"
|
||||||
destination:
|
destination:
|
||||||
server: "https://kubernetes.default.svc"
|
server: "https://kubernetes.default.svc"
|
||||||
namespace: postgres
|
namespace: postgres
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
- ApplyOutOfSyncOnly=true # Prevents ArgoCD from pruning itself
|
||||||
|
- ServerSideApply=true # Ensures Helm is managed correctly
|
||||||
|
34
deploy/postgres/postgres-app.yaml.bak
Normal file
34
deploy/postgres/postgres-app.yaml.bak
Normal 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
|
Reference in New Issue
Block a user