added cnpg controller

This commit is contained in:
sirius0xdev 2026-01-05 23:03:09 +00:00
parent bfd6d70f65
commit d458420cbf
8 changed files with 74 additions and 0 deletions

View file

View file

@ -0,0 +1,18 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: infrastructure-configs
namespace: flux-system
spec:
interval: 1m0s
retryInterval: 1m
timeout: 5m
sourceRef:
kind: GitRepository
name: flux-system
path: ./infrastructure/configs/staging
prune: true
decryption:
provider: sops
secretRef:
name: sops-age

View file

@ -0,0 +1,18 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: infrastructure-controllers
namespace: flux-system
spec:
interval: 1m0s
retryInterval: 1m
timeout: 5m
sourceRef:
kind: GitRepository
name: flux-system
path: ./infrastructure/controllers/staging
prune: true
decryption:
provider: sops
secretRef:
name: sops-age

View file

@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespace.yaml
- repository.yaml
- release.yaml

View file

View file

@ -0,0 +1,20 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: cnpg
namespace: flux-system
spec:
targetNamespace: cnpg-system
interval: 30m
chart:
spec:
chart: cloudnative-pg
version: "0.26.1"
sourceRef:
kind: HelmRepository
name: cnpg
namespace: flux-system
interval: 12h
install:
createNamespace: true

View file

@ -0,0 +1,8 @@
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: cnpg
namespace: flux-system
spec:
interval: 24h
url: https://cloudnative-pg.github.io/charts/

View file

@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../base/cnpg/