diff --git a/kubernetes/apps/victoria-metrics/kustomization.yaml b/kubernetes/apps/victoria-metrics/kustomization.yaml index 44843b5e..9dc8cda2 100644 --- a/kubernetes/apps/victoria-metrics/kustomization.yaml +++ b/kubernetes/apps/victoria-metrics/kustomization.yaml @@ -6,3 +6,4 @@ resources: # Pre Flux-Kustomizations - ./namespace.yaml # Flux-Kustomizations + - ./victoria-metrics/ks.yaml diff --git a/kubernetes/apps/victoria-metrics/app/helmrelease.yaml b/kubernetes/apps/victoria-metrics/operator/app/helmrelease.yaml similarity index 100% rename from kubernetes/apps/victoria-metrics/app/helmrelease.yaml rename to kubernetes/apps/victoria-metrics/operator/app/helmrelease.yaml diff --git a/kubernetes/apps/victoria-metrics/app/kustomization.yaml b/kubernetes/apps/victoria-metrics/operator/app/kustomization.yaml similarity index 100% rename from kubernetes/apps/victoria-metrics/app/kustomization.yaml rename to kubernetes/apps/victoria-metrics/operator/app/kustomization.yaml diff --git a/kubernetes/apps/victoria-metrics/operator/ks.yaml b/kubernetes/apps/victoria-metrics/operator/ks.yaml new file mode 100644 index 00000000..7c832247 --- /dev/null +++ b/kubernetes/apps/victoria-metrics/operator/ks.yaml @@ -0,0 +1,26 @@ +--- +# 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-operator + 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/app + prune: true + sourceRef: + kind: GitRepository + name: homelab + wait: false + interval: 30m + retryInterval: 1m + timeout: 5m + postBuild: + substitute: + APP: *app