Stage Quay CloudNativePG cluster in dedicated namespace

This commit is contained in:
2026-10-24 18:49:13 +02:00
parent fe779bd830
commit 14240b436e
4 changed files with 43 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: quay-postgresql
namespace: quay
spec:
instances: 3
imageName: ghcr.io/cloudnative-pg/postgresql:18.6-standard-trixie
bootstrap:
initdb:
database: quay
owner: quay
storage:
size: 8Gi
storageClass: rook-ceph-block-ec
+1
View File
@@ -103,6 +103,7 @@ resources:
- ollama.yaml
- open-webui.yaml
- quay-project.yaml
- quay-postgresql.yaml
- quay.yaml
- nextcloud-project.yaml
- nextcloud.yaml
+23
View File
@@ -0,0 +1,23 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: quay-postgresql
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "-1"
spec:
project: quay
source:
repoURL: https://code.brunner.ninja/feedc0de/homelab-gitops.git
targetRevision: main
path: apps/quay-postgresql
destination:
server: https://kubernetes.default.svc
namespace: quay
syncPolicy:
automated:
enabled: true
prune: false
selfHeal: true
syncOptions:
- CreateNamespace=true
+4
View File
@@ -13,6 +13,8 @@ spec:
destinations:
- namespace: default
server: https://kubernetes.default.svc
- namespace: quay
server: https://kubernetes.default.svc
- namespace: rook-ceph
server: https://kubernetes.default.svc
namespaceResourceWhitelist:
@@ -38,3 +40,5 @@ spec:
kind: PodDisruptionBudget
- group: ceph.rook.io
kind: CephObjectStoreUser
- group: postgresql.cnpg.io
kind: Cluster