Compare commits
1 commit
f82d00c2a0
...
7030bc90ea
Author | SHA1 | Date | |
---|---|---|---|
7030bc90ea |
1 changed files with 25 additions and 55 deletions
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2.schema.json
|
# yaml-language-server: $schema=https://ks.hsn.dev/helm.toolkit.fluxcd.io/helmrelease_v2.json
|
||||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
kind: HelmRelease
|
kind: HelmRelease
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -8,61 +8,31 @@ spec:
|
||||||
interval: 30m
|
interval: 30m
|
||||||
chart:
|
chart:
|
||||||
spec:
|
spec:
|
||||||
chart: app-template
|
chart: prometheus-smartctl-exporter
|
||||||
version: 3.5.1
|
version: 0.10.0
|
||||||
sourceRef:
|
sourceRef:
|
||||||
kind: HelmRepository
|
kind: HelmRepository
|
||||||
name: bjw-s
|
name: prometheus-community
|
||||||
namespace: flux-system
|
namespace: flux-system
|
||||||
|
install:
|
||||||
|
remediation:
|
||||||
|
retries: 3
|
||||||
|
upgrade:
|
||||||
|
cleanupOnFail: true
|
||||||
|
remediation:
|
||||||
|
strategy: rollback
|
||||||
|
retries: 3
|
||||||
values:
|
values:
|
||||||
controllers:
|
fullnameOverride: *app
|
||||||
smartctl-exporter:
|
# incompatible drives cause false positives for smart failures.
|
||||||
type: daemonset
|
nodeSelector:
|
||||||
pod:
|
matchExpressions:
|
||||||
affinity:
|
- key: kubernetes.io/hostname
|
||||||
nodeAffinity:
|
operator: NotIn
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
values:
|
||||||
nodeSelectorTerms:
|
- gandalf-01
|
||||||
- matchExpressions:
|
- shadowfax-01
|
||||||
- key: kubernetes.io/hostname
|
serviceMonitor:
|
||||||
operator: NotIn
|
enabled: true
|
||||||
values:
|
prometheusRules:
|
||||||
- gandalf-01
|
enabled: false
|
||||||
- shadowfax-01
|
|
||||||
containers:
|
|
||||||
app:
|
|
||||||
image:
|
|
||||||
repository: quay.io/prometheuscommunity/smartctl-exporter
|
|
||||||
tag: v0.12.0
|
|
||||||
args:
|
|
||||||
- --smartctl.path=/usr/sbin/smartctl
|
|
||||||
- --smartctl.interval=120s
|
|
||||||
- --web.listen-address=0.0.0.0:9633
|
|
||||||
- --web.telemetry-path=/metrics
|
|
||||||
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