diff --git a/apps/quay-postgresql/cluster.yaml b/apps/quay-postgresql/cluster.yaml new file mode 100644 index 0000000..750d4c0 --- /dev/null +++ b/apps/quay-postgresql/cluster.yaml @@ -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 diff --git a/bootstrap/kustomization.yaml b/bootstrap/kustomization.yaml index b6d9738..4a59c65 100644 --- a/bootstrap/kustomization.yaml +++ b/bootstrap/kustomization.yaml @@ -103,6 +103,7 @@ resources: - ollama.yaml - open-webui.yaml - quay-project.yaml +- quay-postgresql.yaml - quay.yaml - nextcloud-project.yaml - nextcloud.yaml diff --git a/bootstrap/quay-postgresql.yaml b/bootstrap/quay-postgresql.yaml new file mode 100644 index 0000000..41704a2 --- /dev/null +++ b/bootstrap/quay-postgresql.yaml @@ -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 diff --git a/bootstrap/quay-project.yaml b/bootstrap/quay-project.yaml index 3cca853..9024c72 100644 --- a/bootstrap/quay-project.yaml +++ b/bootstrap/quay-project.yaml @@ -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