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