feat: migrate cnpg-system from Terraform to ArgoCD

- Add cnpg-system base ArgoCD application with namespace
- Create cnpg-system overlay for au-syd1 with CloudNativePG Helm chart
- Update platform ApplicationSet to include cnpg-system deployment
- Configure cloudnative-pg operator v0.27.0 with HA and resource limits
- Maintain one-to-one migration from Terraform configuration
This commit is contained in:
2026-03-18 21:48:33 +11:00
parent 3961fe4e68
commit fae3288e70
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
@@ -11,6 +11,7 @@ spec:
revision: HEAD revision: HEAD
directories: directories:
- path: apps/overlays/*/artifactapi - path: apps/overlays/*/artifactapi
- path: apps/overlays/*/cnpg-system
- path: apps/overlays/*/reflector-system - path: apps/overlays/*/reflector-system
- path: apps/overlays/*/reloader-system - path: apps/overlays/*/reloader-system
- path: apps/overlays/*/jfrog - path: apps/overlays/*/jfrog
+1
View File
@@ -10,6 +10,7 @@ spec:
- https://git.unkin.net/unkin/argocd-apps - https://git.unkin.net/unkin/argocd-apps
- oci://ghcr.io/emberstack/helm-charts - oci://ghcr.io/emberstack/helm-charts
- oci://ghcr.io/woodpecker-ci/helm/woodpecker - oci://ghcr.io/woodpecker-ci/helm/woodpecker
- https://cloudnative-pg.github.io/charts
destinations: destinations:
- namespace: '*-system' - namespace: '*-system'
server: https://kubernetes.default.svc server: https://kubernetes.default.svc