generated from onedr0p/cluster-template
-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
helmrelease.yaml
61 lines (61 loc) · 1.76 KB
/
helmrelease.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2.schema.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: &app nut-exporter
spec:
interval: 30m
chart:
spec:
chart: app-template
version: 3.2.1
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
install:
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
strategy: rollback
retries: 3
values:
fullnameOverride: *app
controllers:
nut-exporter:
annotations:
reloader.stakater.com/auto: "true"
containers:
app:
image:
repository: ghcr.io/druggeri/nut_exporter
tag: 3.1.1
env:
TZ: ${TIMEZONE}
args:
# the first time I set this, the first and last entries were ignored, so I have doubled them.
- --nut.vars_enable="battery.charge,battery.charge,battery.runtime,battery.voltage,battery.voltage.nominal,input.voltage,input.voltage.nominal,output.voltage,output.voltage.nominal,ups.realpower,ups.load,ups.status,ups.status"
probes:
liveness:
enabled: true
readiness:
enabled: true
startup:
enabled: true
resources:
limits:
cpu: 100m
memory: 200Mi
service:
app:
controller: *app
ports:
metrics:
enabled: true
protocol: TCP
port: 9199
annotations:
external-dns.alpha.kubernetes.io/hostname: exporters.${SECRET_DOMAIN}