add cnpg operator

This commit is contained in:
2026-03-15 17:28:34 +01:00
parent 5a4783c063
commit 6fcde6b26d
7 changed files with 50 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cnpg
namespace: flux-system
spec:
interval: 10m
path: ./clusters/homelab/cnpg
prune: true
sourceRef:
kind: GitRepository
name: flux-system
+15
View File
@@ -0,0 +1,15 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: cnpg
namespace: cnpg-system
spec:
interval: 1h
chart:
spec:
chart: cloudnative-pg
version: "0.23.x"
sourceRef:
kind: HelmRepository
name: cnpg
namespace: cnpg-system
@@ -0,0 +1,8 @@
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: cnpg
namespace: cnpg-system
spec:
interval: 1h
url: https://cloudnative-pg.github.io/charts
+6
View File
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespace.yaml
- helmrepository.yaml
- helmrelease.yaml
+8
View File
@@ -0,0 +1,8 @@
apiVersion: v1
kind: Namespace
metadata:
name: cnpg-system
labels:
pod-security.kubernetes.io/enforce: privileged
pod-security.kubernetes.io/audit: privileged
pod-security.kubernetes.io/warn: privileged
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespaces.yaml
- namespace.yaml
- helmrepository.yaml
- helmrelease.yaml