Add zfs-exporter

This commit is contained in:
SeanOMik 2023-04-24 00:30:04 -04:00
parent 8d9a5ee345
commit 813ad42d7a
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
3 changed files with 56 additions and 1 deletions

View File

@ -3,4 +3,5 @@ kind: Kustomization
resources:
- ./namespace.yaml
- ./network_policy.yaml
- ./kube-prometheus-stack
- ./kube-prometheus-stack
- ./zfs-exporter

View File

@ -0,0 +1,50 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta1
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: latest
securityContext:
privileged: true
service:
main:
ports:
http:
port: 8080
probes:
liveness:
enabled: false
serviceMonitor:
main:
enabled: true
endpoints:
- port: http
scheme: http
path: /metrics
interval: 1m
scrapeTimeout: 10s
# resources:
# requests:
# cpu: 1m
# memory: 140Mi
# limits:
# memory: 300Mi

View File

@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./helm-release.yaml