switch to app-template
This commit is contained in:
parent
44587fc33a
commit
9a9be03cc9
1 changed files with 45 additions and 25 deletions
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
# yaml-language-server: $schema=https://ks.hsn.dev/helm.toolkit.fluxcd.io/helmrelease_v2.json
|
# 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
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
kind: HelmRelease
|
kind: HelmRelease
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -8,31 +8,51 @@ spec:
|
||||||
interval: 30m
|
interval: 30m
|
||||||
chart:
|
chart:
|
||||||
spec:
|
spec:
|
||||||
chart: prometheus-smartctl-exporter
|
chart: app-template
|
||||||
version: 0.10.0
|
version: 3.5.1
|
||||||
sourceRef:
|
sourceRef:
|
||||||
kind: HelmRepository
|
kind: HelmRepository
|
||||||
name: prometheus-community
|
name: bjw-s
|
||||||
namespace: flux-system
|
namespace: flux-system
|
||||||
install:
|
|
||||||
remediation:
|
|
||||||
retries: 3
|
|
||||||
upgrade:
|
|
||||||
cleanupOnFail: true
|
|
||||||
remediation:
|
|
||||||
strategy: rollback
|
|
||||||
retries: 3
|
|
||||||
values:
|
values:
|
||||||
fullnameOverride: *app
|
controllers:
|
||||||
# incompatible drives cause false positives for smart failures.
|
smartctl-exporter:
|
||||||
nodeSelector:
|
type: daemonset
|
||||||
matchExpressions:
|
containers:
|
||||||
- key: kubernetes.io/hostname
|
app:
|
||||||
operator: NotIn
|
image:
|
||||||
values:
|
repository: quay.io/prometheuscommunity/smartctl-exporter
|
||||||
- gandalf-01
|
tag: v0.12.0
|
||||||
- shadowfax-01
|
args:
|
||||||
serviceMonitor:
|
- --smartctl.path=/usr/sbin/smartctl
|
||||||
enabled: true
|
- --smartctl.interval=120s
|
||||||
prometheusRules:
|
- --web.listen-address=0.0.0.0:9633
|
||||||
enabled: false
|
- --web.telemetry-path=/metrics
|
||||||
|
- --smartctl.device-exclude=".*incus_root.*"
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
|
runAsUser: 0
|
||||||
|
probes:
|
||||||
|
liveness: &probes
|
||||||
|
enabled: true
|
||||||
|
custom: true
|
||||||
|
spec:
|
||||||
|
httpGet:
|
||||||
|
port: 9633
|
||||||
|
path: /
|
||||||
|
readiness: *probes
|
||||||
|
service:
|
||||||
|
app:
|
||||||
|
controller: smartctl-exporter
|
||||||
|
type: LoadBalancer
|
||||||
|
ports:
|
||||||
|
http:
|
||||||
|
port: 9633
|
||||||
|
persistence:
|
||||||
|
dev:
|
||||||
|
type: hostPath
|
||||||
|
hostPath: /dev
|
||||||
|
hostPathType: Directory
|
||||||
|
globalMounts:
|
||||||
|
- path: /host/dev
|
||||||
|
readOnly: true
|
||||||
|
|
Loading…
Reference in a new issue