From 88eb80343712729dd1a1d2f7ce5855f5d89db881 Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Thu, 8 Aug 2024 17:20:47 -0500 Subject: [PATCH] re-arrange vm cluster --- .../cluster/cluster.yaml} | 0 .../operator/cluster/kustomization.yaml | 6 +++++ .../apps/victoria-metrics/operator/ks.yaml | 26 +++++++++++++++++++ 3 files changed, 32 insertions(+) rename kubernetes/apps/victoria-metrics/{cluster/helmrelease.yaml => operator/cluster/cluster.yaml} (100%) create mode 100644 kubernetes/apps/victoria-metrics/operator/cluster/kustomization.yaml diff --git a/kubernetes/apps/victoria-metrics/cluster/helmrelease.yaml b/kubernetes/apps/victoria-metrics/operator/cluster/cluster.yaml similarity index 100% rename from kubernetes/apps/victoria-metrics/cluster/helmrelease.yaml rename to kubernetes/apps/victoria-metrics/operator/cluster/cluster.yaml diff --git a/kubernetes/apps/victoria-metrics/operator/cluster/kustomization.yaml b/kubernetes/apps/victoria-metrics/operator/cluster/kustomization.yaml new file mode 100644 index 00000000..a2c786be --- /dev/null +++ b/kubernetes/apps/victoria-metrics/operator/cluster/kustomization.yaml @@ -0,0 +1,6 @@ +--- +# yaml-language-server: $schema=https://json.schemastore.org/kustomization +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ./cluster.yaml diff --git a/kubernetes/apps/victoria-metrics/operator/ks.yaml b/kubernetes/apps/victoria-metrics/operator/ks.yaml index 7c832247..02ca7c9e 100644 --- a/kubernetes/apps/victoria-metrics/operator/ks.yaml +++ b/kubernetes/apps/victoria-metrics/operator/ks.yaml @@ -24,3 +24,29 @@ spec: postBuild: substitute: APP: *app +--- +# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: &app victoria-metrics-cluster + namespace: flux-system +spec: + targetNamespace: victoria-metrics + commonMetadata: + labels: + app.kubernetes.io/name: *app + dependsOn: + - name: external-secrets-stores + path: ./kubernetes/apps/victoria-metrics/operator/cluster + prune: true + sourceRef: + kind: GitRepository + name: homelab + wait: false + interval: 30m + retryInterval: 1m + timeout: 5m + postBuild: + substitute: + APP: *app