Compare commits
3 commits
7030bc90ea
...
f82d00c2a0
Author | SHA1 | Date | |
---|---|---|---|
f82d00c2a0 | |||
6f29438222 | |||
9a9be03cc9 |
1 changed files with 55 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
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
|
@ -8,31 +8,61 @@ spec:
|
|||
interval: 30m
|
||||
chart:
|
||||
spec:
|
||||
chart: prometheus-smartctl-exporter
|
||||
version: 0.10.0
|
||||
chart: app-template
|
||||
version: 3.5.1
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: prometheus-community
|
||||
name: bjw-s
|
||||
namespace: flux-system
|
||||
install:
|
||||
remediation:
|
||||
retries: 3
|
||||
upgrade:
|
||||
cleanupOnFail: true
|
||||
remediation:
|
||||
strategy: rollback
|
||||
retries: 3
|
||||
values:
|
||||
fullnameOverride: *app
|
||||
# incompatible drives cause false positives for smart failures.
|
||||
nodeSelector:
|
||||
matchExpressions:
|
||||
controllers:
|
||||
smartctl-exporter:
|
||||
type: daemonset
|
||||
pod:
|
||||
affinity:
|
||||
nodeAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
nodeSelectorTerms:
|
||||
- matchExpressions:
|
||||
- key: kubernetes.io/hostname
|
||||
operator: NotIn
|
||||
values:
|
||||
- gandalf-01
|
||||
- shadowfax-01
|
||||
serviceMonitor:
|
||||
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
|
||||
prometheusRules:
|
||||
enabled: false
|
||||
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