From 26f76bd036283d1a6c931ad35500c5b50ea41f52 Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Thu, 15 Jun 2023 00:21:17 -0400 Subject: [PATCH] add kube-prometheus-stack crds --- .../kube-prometheus-stack/helm-release.yaml | 2 +- cluster/crds/kube-prometheus-stack/crds.yaml | 30 +++++++++++++++++++ .../kube-prometheus-stack/kustomization.yaml | 4 +++ cluster/crds/kustomization.yaml | 7 +++-- 4 files changed, 39 insertions(+), 4 deletions(-) create mode 100644 cluster/crds/kube-prometheus-stack/crds.yaml create mode 100644 cluster/crds/kube-prometheus-stack/kustomization.yaml diff --git a/cluster/apps/monitoring/kube-prometheus-stack/helm-release.yaml b/cluster/apps/monitoring/kube-prometheus-stack/helm-release.yaml index dae62c6..cf72344 100644 --- a/cluster/apps/monitoring/kube-prometheus-stack/helm-release.yaml +++ b/cluster/apps/monitoring/kube-prometheus-stack/helm-release.yaml @@ -8,7 +8,7 @@ spec: chart: spec: chart: kube-prometheus-stack - version: 45.10.x + version: "46.8.0" sourceRef: kind: HelmRepository name: prometheus-community-charts diff --git a/cluster/crds/kube-prometheus-stack/crds.yaml b/cluster/crds/kube-prometheus-stack/crds.yaml new file mode 100644 index 0000000..c4ce542 --- /dev/null +++ b/cluster/crds/kube-prometheus-stack/crds.yaml @@ -0,0 +1,30 @@ +--- +apiVersion: source.toolkit.fluxcd.io/v1beta2 +kind: GitRepository +metadata: + name: kube-prometheus-stack-source + namespace: flux-system +spec: + interval: 12h + url: https://github.com/prometheus-community/helm-charts.git + ref: + tag: kube-prometheus-stack-46.8.0 + ignore: | + # exclude all + /* + # include crds directory + !/charts/kube-prometheus-stack/crds +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1beta2 +kind: Kustomization +metadata: + name: crds-kube-prometheus-stack + namespace: flux-system +spec: + interval: 30m + prune: false + wait: true + sourceRef: + kind: GitRepository + name: kube-prometheus-stack-source + path: ./charts/kube-prometheus-stack/crds diff --git a/cluster/crds/kube-prometheus-stack/kustomization.yaml b/cluster/crds/kube-prometheus-stack/kustomization.yaml new file mode 100644 index 0000000..2ed3b35 --- /dev/null +++ b/cluster/crds/kube-prometheus-stack/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - crds.yaml diff --git a/cluster/crds/kustomization.yaml b/cluster/crds/kustomization.yaml index a924b80..3142bb8 100644 --- a/cluster/crds/kustomization.yaml +++ b/cluster/crds/kustomization.yaml @@ -1,6 +1,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - - cert-manager - - traefik - - metallb +- cert-manager +- traefik +- metallb +- kube-prometheus-stack \ No newline at end of file