add CloudNativePG operator and HA postgres cluster

This commit is contained in:
Sergei Poljanski 2026-04-04 17:07:41 +03:00
commit 2a5ddda96c
Signed by: asxpi
GPG key ID: 4F8851660FA4121B
6 changed files with 116 additions and 0 deletions

20
apps/postgres.yaml Normal file
View file

@ -0,0 +1,20 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: postgres
namespace: argocd
spec:
project: default
source:
repoURL: ssh://git@git.czsk.it/asxpi/k8s-asxpio-gitops.git
targetRevision: main
path: apps/postgres
destination:
server: https://kubernetes.default.svc
namespace: postgres
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true