62 lines
1.5 KiB
YAML

---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: kube-prometheus-stack
namespace: flux-system
spec:
interval: 10m
releaseName: kube-prometheus-stack
targetNamespace: monitor
install:
crds: Skip
chart:
spec:
chart: kube-prometheus-stack
sourceRef:
kind: HelmRepository
name: prometheus-community
namespace: flux-system
interval: 10m
valuesFrom:
- kind: Secret
name: grafana-creds
valuesKey: gf-admin-password
targetPath: grafana.adminPassword
values:
grafana:
# adminPassword: admin
defaultDashboardsTimezone: browser
# TODO: Create CRDS first and then apply everything at one step
ingress:
enabled: true
annotations:
cert-manager.io/cluster-issuer: le-cf-issuer
kubernetes.io/ingress.class: traefik
hosts:
- gf.dolo.mnke.org
tls:
- secretName: wildcard-mnke-org-tls
hosts:
- gf.dolo.mnke.org
persistence:
enabled: true
type : sts
storageClassName: longhorn
accessModes:
- ReadWriteOnce
size: 4Gi
finalizers:
- kubernetes.io/pvc-protection
prometheus:
prometheusSpec:
storageSpec:
volumeClaimTemplate:
spec:
storageClassName: nfs-client
accessModes: ["ReadWriteMany"]
resources:
requests:
storage: 8Gi