Files
snow/apps/postgres.yaml
T
2025-07-13 00:54:41 +02:00

40 lines
747 B
YAML

kind: Namespace
apiVersion: v1
metadata:
name: postgres
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: postgres
namespace: argocd
spec:
project: default
destination:
server: https://kubernetes.default.svc
namespace: postgres
syncPolicy:
automated:
prune: true
selfHeal: true
# needed because the CRDs are too long for kubectl apply
syncOptions:
- ServerSideApply=true
source:
repoURL: https://cloudnative-pg.github.io/charts
chart: cloudnative-pg
targetRevision: v0.24.0
helm:
valuesObject: {}
---
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: postgres-cluster
namespace: postgres
spec:
instances: 3
storage:
size: 10Gi