From 15bd684cf120b82b8bb1c02b7068c09e6f4ce822 Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Fri, 27 Mar 2026 16:22:50 +1100 Subject: [PATCH] feat: migrate elastic-system to ArgoCD MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Migrate ECK operator from Terragrunt to ArgoCD/Kustomize. Deploys eck-operator v3.2.0 with 2 replicas and PodDisruptionBudget in the elastic-system namespace. 💘 Generated with Crush Assisted-by: Claude Sonnet 4.6 via Crush --- apps/base/elastic-system/kustomization.yaml | 6 ++++++ apps/base/elastic-system/namespace.yaml | 7 +++++++ .../au-syd1/elastic-system/kustomization.yaml | 16 ++++++++++++++++ apps/overlays/au-syd1/elastic-system/values.yaml | 11 +++++++++++ argocd/applicationsets/platform.yaml | 1 + argocd/projects/platform.yaml | 1 + 6 files changed, 42 insertions(+) create mode 100644 apps/base/elastic-system/kustomization.yaml create mode 100644 apps/base/elastic-system/namespace.yaml create mode 100644 apps/overlays/au-syd1/elastic-system/kustomization.yaml create mode 100644 apps/overlays/au-syd1/elastic-system/values.yaml diff --git a/apps/base/elastic-system/kustomization.yaml b/apps/base/elastic-system/kustomization.yaml new file mode 100644 index 0000000..5122f9e --- /dev/null +++ b/apps/base/elastic-system/kustomization.yaml @@ -0,0 +1,6 @@ +--- +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: + - namespace.yaml diff --git a/apps/base/elastic-system/namespace.yaml b/apps/base/elastic-system/namespace.yaml new file mode 100644 index 0000000..3083ea5 --- /dev/null +++ b/apps/base/elastic-system/namespace.yaml @@ -0,0 +1,7 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + labels: + app.kubernetes.io/name: elastic-system + name: elastic-system diff --git a/apps/overlays/au-syd1/elastic-system/kustomization.yaml b/apps/overlays/au-syd1/elastic-system/kustomization.yaml new file mode 100644 index 0000000..f6ac1d8 --- /dev/null +++ b/apps/overlays/au-syd1/elastic-system/kustomization.yaml @@ -0,0 +1,16 @@ +--- +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +namespace: elastic-system + +resources: + - ../../../base/elastic-system + +helmCharts: + - name: eck-operator + repo: https://helm.elastic.co + version: "3.2.0" + releaseName: elastic-operator + namespace: elastic-system + valuesFile: values.yaml diff --git a/apps/overlays/au-syd1/elastic-system/values.yaml b/apps/overlays/au-syd1/elastic-system/values.yaml new file mode 100644 index 0000000..6c7324e --- /dev/null +++ b/apps/overlays/au-syd1/elastic-system/values.yaml @@ -0,0 +1,11 @@ +replicaCount: 2 +resources: + limits: + cpu: 1 + memory: 1Gi + requests: + cpu: 10m + memory: 150Mi +podDisruptionBudget: + enabled: true + minAvailable: 1 diff --git a/argocd/applicationsets/platform.yaml b/argocd/applicationsets/platform.yaml index 0c4eafd..3f5d424 100644 --- a/argocd/applicationsets/platform.yaml +++ b/argocd/applicationsets/platform.yaml @@ -15,6 +15,7 @@ spec: - path: apps/overlays/*/cert-manager - path: apps/overlays/*/certificates - path: apps/overlays/*/cnpg-system + - path: apps/overlays/*/elastic-system - path: apps/overlays/*/externaldns - path: apps/overlays/*/inteldeviceplugins-system - path: apps/overlays/*/jfrog diff --git a/argocd/projects/platform.yaml b/argocd/projects/platform.yaml index f5bfac8..eb2da86 100644 --- a/argocd/projects/platform.yaml +++ b/argocd/projects/platform.yaml @@ -10,6 +10,7 @@ spec: - https://git.unkin.net/unkin/argocd-apps - https://charts.jetstack.io - https://cloudnative-pg.github.io/charts + - https://helm.elastic.co - https://intel.github.io/helm-charts/ - https://kubernetes-sigs.github.io/external-dns/ - https://releases.rancher.com/server-charts/stable