feat: migrate cnpg-system from Terraform to ArgoCD #44

Merged
unkinben merged 1 commits from benvin/cnpg-system into main 2026-03-19 01:25:50 +11:00
6 changed files with 43 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespace.yaml
+5
View File
@@ -0,0 +1,5 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: cnpg-system
@@ -0,0 +1,14 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../base/cnpg-system
helmCharts:
- name: cloudnative-pg
repo: https://cloudnative-pg.github.io/charts
version: "0.27.0"
releaseName: cloudnative-pg-operator
namespace: cnpg-system
valuesFile: values.yaml
@@ -0,0 +1,16 @@
replicaCount: 2
resources:
limits:
cpu: 500m
memory: 400Mi
requests:
cpu: 10m
memory: 200Mi
podDisruptionBudget:
enabled: true
minAvailable: 1
monitoring:
createPodMonitor: false # Requires Prometheus Operator CRDs.
+1
View File
@@ -14,6 +14,7 @@ spec:
- path: apps/overlays/*/cattle-system
- path: apps/overlays/*/certificates
- path: apps/overlays/*/cert-manager
- path: apps/overlays/*/cnpg-system
- path: apps/overlays/*/externaldns
- path: apps/overlays/*/reflector-system
- path: apps/overlays/*/reloader-system
+1
View File
@@ -13,6 +13,7 @@ spec:
- https://releases.rancher.com/server-charts/stable
- https://charts.jetstack.io
- https://kubernetes-sigs.github.io/external-dns/
- https://cloudnative-pg.github.io/charts
destinations:
- namespace: '*-system'
server: https://kubernetes.default.svc