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:
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- namespace.yaml
|
||||||
@@ -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.
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user