From 3ce223888280cb4bef8bf238b5b06b02312c21ea Mon Sep 17 00:00:00 2001 From: j37hr0 Date: Tue, 7 Apr 2026 18:33:24 +1200 Subject: [PATCH] added cnpg stuff --- infrastructure/certmanager/helmrelease.yaml | 3 --- .../cloudnative-pg/kustomization.yaml | 5 +++++ .../databases/cloudnative-pg/values.yaml | 21 +++++++++++++++++++ infrastructure/databases/kustomization.yaml | 5 +++++ infrastructure/kustomization.yaml | 1 + 5 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 infrastructure/databases/cloudnative-pg/kustomization.yaml create mode 100644 infrastructure/databases/cloudnative-pg/values.yaml create mode 100644 infrastructure/databases/kustomization.yaml diff --git a/infrastructure/certmanager/helmrelease.yaml b/infrastructure/certmanager/helmrelease.yaml index 265b9d4..0b215f2 100644 --- a/infrastructure/certmanager/helmrelease.yaml +++ b/infrastructure/certmanager/helmrelease.yaml @@ -14,6 +14,3 @@ spec: kind: HelmRepository name: cert-manager namespace: flux-system -# values: - # keep minimal to start -# replicaCount: 1 diff --git a/infrastructure/databases/cloudnative-pg/kustomization.yaml b/infrastructure/databases/cloudnative-pg/kustomization.yaml new file mode 100644 index 0000000..1daa53a --- /dev/null +++ b/infrastructure/databases/cloudnative-pg/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- values.yaml +- helmrelease.yaml diff --git a/infrastructure/databases/cloudnative-pg/values.yaml b/infrastructure/databases/cloudnative-pg/values.yaml new file mode 100644 index 0000000..37e9a8a --- /dev/null +++ b/infrastructure/databases/cloudnative-pg/values.yaml @@ -0,0 +1,21 @@ +replicaCount: 1 + +image: + repository: ghcr.io/cloudnative-pg/cloudnative-pg + pullPolicy: IfNotPresent + +config: + clusterWide: true + +monitoring: + podMonitorEnabled: true + +grafanaDashboard: + create: true + +rbac: + create: true + +serviceAccount: + create: true + name: cnpg-controller-manager diff --git a/infrastructure/databases/kustomization.yaml b/infrastructure/databases/kustomization.yaml new file mode 100644 index 0000000..46ec96b --- /dev/null +++ b/infrastructure/databases/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- cloudnative-pg +#- mariadb diff --git a/infrastructure/kustomization.yaml b/infrastructure/kustomization.yaml index 2a432c1..6ac7787 100644 --- a/infrastructure/kustomization.yaml +++ b/infrastructure/kustomization.yaml @@ -6,3 +6,4 @@ resources: - eso - certmanager - velero +#- databases