Start adding grafana monitoring stack

This commit is contained in:
2024-08-05 18:59:25 +01:00
parent 954e5facc5
commit 657d5a477d
10 changed files with 164 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: grafana
spec:
chart:
spec:
chart: grafana/grafana
reconcileStrategy: ChartVersion
sourceRef:
kind: HelmRepository
name: grafana-repo
version: 8.4.1
valuesFiles:
- values.yaml
interval: 1m0s
targetNamespace: monitoring
values:
persistence:
enabled: true
storageClassName: longhorn

View File

@@ -0,0 +1,16 @@
# apiVersion: traefik.io/v1alpha1
# kind: IngressRoute
# metadata:
# name: grafana
# spec:
# entryPoints:
# - web
# routes:
# - match: Host(`grafana.k3s`)
# kind: Rule
# services:
# - name:
# namespace: monitoring
# nativeLB: true
# kind: Service
# port: 80

View File

@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- helmrelease.yaml
# - ingress.yaml