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 kind: HelmRelease
metadata: metadata:
name: kube-prometheus-stack name: kube-prometheus-stack
spec: spec:
interval: 1h interval: 1h
chart: chartRef:
spec: kind: OCIRepository
version: "58.x" name: kube-prometheus-stack
chart: kube-prometheus-stack
sourceRef:
kind: HelmRepository
name: prometheus-community
interval: 1h
install: install:
crds: Create crds: Create
upgrade: upgrade:

View file

@ -1,8 +1,12 @@
apiVersion: source.toolkit.fluxcd.io/v1beta2 apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository kind: OCIRepository
metadata: metadata:
name: prometheus-community name: kube-prometheus-stack
spec: spec:
interval: 12h interval: 1h
type: oci url: oci://ghcr.io/prometheus-community/charts/kube-prometheus-stack
url: oci://ghcr.io/prometheus-community/charts 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 kind: HelmRelease
metadata: metadata:
name: loki-stack name: loki-stack

View file

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