19
clusters/kairos/monitoring/grafana/helmrelease.yaml
Normal file
19
clusters/kairos/monitoring/grafana/helmrelease.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: grafana
|
||||
spec:
|
||||
chart:
|
||||
spec:
|
||||
chart: grafana
|
||||
reconcileStrategy: ChartVersion
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: grafana-repo
|
||||
version: 8.4.1
|
||||
interval: 1m0s
|
||||
targetNamespace: monitoring
|
||||
values:
|
||||
persistence:
|
||||
enabled: true
|
||||
storageClassName: longhorn
|
||||
16
clusters/kairos/monitoring/grafana/ingress.yaml
Normal file
16
clusters/kairos/monitoring/grafana/ingress.yaml
Normal 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: monitoring-grafana
|
||||
namespace: monitoring
|
||||
nativeLB: true
|
||||
kind: Service
|
||||
port: 80
|
||||
5
clusters/kairos/monitoring/grafana/kustomization.yaml
Normal file
5
clusters/kairos/monitoring/grafana/kustomization.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- helmrelease.yaml
|
||||
- ingress.yaml
|
||||
Reference in New Issue
Block a user