feat: migrate cnpg-system from Terraform to ArgoCD (#44)
- 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 Reviewed-on: #44
This commit was merged in pull request #44.
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.
|
||||||
@@ -14,6 +14,7 @@ spec:
|
|||||||
- path: apps/overlays/*/cattle-system
|
- path: apps/overlays/*/cattle-system
|
||||||
- path: apps/overlays/*/certificates
|
- path: apps/overlays/*/certificates
|
||||||
- path: apps/overlays/*/cert-manager
|
- path: apps/overlays/*/cert-manager
|
||||||
|
- path: apps/overlays/*/cnpg-system
|
||||||
- path: apps/overlays/*/externaldns
|
- path: apps/overlays/*/externaldns
|
||||||
- path: apps/overlays/*/reflector-system
|
- path: apps/overlays/*/reflector-system
|
||||||
- path: apps/overlays/*/reloader-system
|
- path: apps/overlays/*/reloader-system
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ spec:
|
|||||||
- https://releases.rancher.com/server-charts/stable
|
- https://releases.rancher.com/server-charts/stable
|
||||||
- https://charts.jetstack.io
|
- https://charts.jetstack.io
|
||||||
- https://kubernetes-sigs.github.io/external-dns/
|
- https://kubernetes-sigs.github.io/external-dns/
|
||||||
|
- https://cloudnative-pg.github.io/charts
|
||||||
destinations:
|
destinations:
|
||||||
- namespace: '*-system'
|
- namespace: '*-system'
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
|
|||||||
Reference in New Issue
Block a user