1
0
Fork 0
mirror of https://github.com/fluxcd/flux2-monitoring-example.git synced 2024-12-14 10:47:31 +00:00

Update to HelmRelease v2 API

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan 2024-05-07 09:59:12 +03:00
parent fbf131257d
commit 87923b0b07
No known key found for this signature in database
GPG key ID: 3299AEB0E4085BAF
4 changed files with 15 additions and 16 deletions

View file

@ -1,17 +1,12 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta2
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: kube-prometheus-stack
spec:
interval: 1h
chart:
spec:
version: "58.x"
chart: kube-prometheus-stack
sourceRef:
kind: HelmRepository
name: prometheus-community
interval: 1h
chartRef:
kind: OCIRepository
name: kube-prometheus-stack
install:
crds: Create
upgrade:

View file

@ -1,8 +1,12 @@
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
kind: OCIRepository
metadata:
name: prometheus-community
name: kube-prometheus-stack
spec:
interval: 12h
type: oci
url: oci://ghcr.io/prometheus-community/charts
interval: 1h
url: oci://ghcr.io/prometheus-community/charts/kube-prometheus-stack
ref:
semver: "58.x"
layerSelector:
mediaType: "application/vnd.cncf.helm.chart.content.v1.tar+gzip"
operation: copy

View file

@ -1,4 +1,4 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta2
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: loki-stack

View file

@ -1,4 +1,4 @@
apiVersion: source.toolkit.fluxcd.io/v1beta2
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: grafana-charts