add kube-prometheus-stack crds

This commit is contained in:
SeanOMik 2023-06-15 00:21:17 -04:00
parent 18c515ec32
commit 26f76bd036
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
4 changed files with 39 additions and 4 deletions

View File

@ -8,7 +8,7 @@ spec:
chart: chart:
spec: spec:
chart: kube-prometheus-stack chart: kube-prometheus-stack
version: 45.10.x version: "46.8.0"
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: prometheus-community-charts name: prometheus-community-charts

View File

@ -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

View File

@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- crds.yaml

View File

@ -4,3 +4,4 @@ resources:
- cert-manager - cert-manager
- traefik - traefik
- metallb - metallb
- kube-prometheus-stack