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