From 9f1a4359124abdf78e25c3628c7dac90a7e277b3 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 | 7 ++++--- argocd/projects/platform.yaml | 13 +++++++------ 6 files changed, 51 insertions(+), 9 deletions(-) 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 a77be79..4597112 100644 --- a/argocd/applicationsets/platform.yaml +++ b/argocd/applicationsets/platform.yaml @@ -12,16 +12,17 @@ spec: directories: - path: apps/overlays/*/artifactapi - path: apps/overlays/*/cattle-system - - path: apps/overlays/*/certificates - 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 - path: apps/overlays/*/node-feature-discovery + - path: apps/overlays/*/puppet - path: apps/overlays/*/reflector-system - path: apps/overlays/*/reloader-system - - path: apps/overlays/*/jfrog - - path: apps/overlays/*/puppet - path: apps/overlays/*/woodpecker template: metadata: diff --git a/argocd/projects/platform.yaml b/argocd/projects/platform.yaml index c537d30..b3a2ce4 100644 --- a/argocd/projects/platform.yaml +++ b/argocd/projects/platform.yaml @@ -8,14 +8,15 @@ spec: description: Platform infrastructure and core services sourceRepos: - 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 + - oci://gcr.io/k8s-staging-nfd/charts - oci://ghcr.io/emberstack/helm-charts - oci://ghcr.io/woodpecker-ci/helm/woodpecker - - https://releases.rancher.com/server-charts/stable - - https://charts.jetstack.io - - https://kubernetes-sigs.github.io/external-dns/ - - https://cloudnative-pg.github.io/charts - - oci://gcr.io/k8s-staging-nfd/charts - - https://intel.github.io/helm-charts/ destinations: - namespace: '*-system' server: https://kubernetes.default.svc