Provision Ghostfolio PostgreSQL on CloudNativePG
This commit is contained in:
1 parent
9d54a7f1e0
commit
9209bb5474
4 files changed
+25
No files matched your search
@@ -0,0 +1,17 @@
|
||||
apiVersion: postgresql.cnpg.io/v1
|
||||
kind: Cluster
|
||||
metadata:
|
||||
name: ghostfolio-postgresql
|
||||
namespace: ghostfolio
|
||||
spec:
|
||||
instances: 1
|
||||
imageName: ghcr.io/cloudnative-pg/postgresql:17.11-standard-trixie
|
||||
bootstrap:
|
||||
initdb:
|
||||
database: ghostfolio
|
||||
owner: ghostfolio
|
||||
secret:
|
||||
name: ghostfolio-postgresql-bootstrap
|
||||
storage:
|
||||
size: 8Gi
|
||||
storageClass: rook-ceph-block
|
||||
@@ -0,0 +1,4 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- cluster.yaml
|
||||
@@ -17,6 +17,9 @@ spec:
|
||||
- repoURL: https://code.brunner.ninja/feedc0de/homelab-gitops.git
|
||||
targetRevision: main
|
||||
ref: values
|
||||
- repoURL: https://code.brunner.ninja/feedc0de/homelab-gitops.git
|
||||
targetRevision: main
|
||||
path: apps/ghostfolio-postgresql/cluster
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: ghostfolio
|
||||
|
||||
@@ -24,6 +24,7 @@ spec:
|
||||
- {group: "", kind: Pod}
|
||||
- {group: apps, kind: Deployment}
|
||||
- {group: apps, kind: StatefulSet}
|
||||
- {group: postgresql.cnpg.io, kind: Cluster}
|
||||
- {group: networking.k8s.io, kind: Ingress}
|
||||
- {group: networking.k8s.io, kind: NetworkPolicy}
|
||||
- {group: policy, kind: PodDisruptionBudget}
|
||||
|
||||
Reference in new issue
Block a user