apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
  name: zfs-exporter
  namespace: monitoring
spec:
  interval: 5m
  chart:
    spec:
      chart: app-template
      version: 1.3.x
      sourceRef:
        kind: HelmRepository
        name: bjws-charts
        namespace: flux-system

  values:
    image:
      repository: ghcr.io/seanomik/zfs_promexporter
      tag: v0.0.2

    securityContext:
      privileged: true

    service:
      main:
        ports:
          http:
            port: 8080

    probes:
      liveness:
        enabled: false

    serviceMonitor:
      main:
        enabled: true

        labels:
          release: kube-prometheus-stack

        endpoints:
        - port: http
          scheme: http
          path: /metrics
          interval: 1m
          scrapeTimeout: 10s

#    resources:
#      requests:
#        cpu: 1m
#        memory: 140Mi
#      limits:
#        memory: 300Mi