mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
87 lines
2.2 KiB
YAML
87 lines
2.2 KiB
YAML
---
|
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2beta2.schema.json
|
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
|
kind: HelmRelease
|
|
metadata:
|
|
name: &app scrutiny-collector
|
|
namespace: monitoring
|
|
spec:
|
|
interval: 30m
|
|
chart:
|
|
spec:
|
|
chart: app-template
|
|
version: 3.2.1
|
|
sourceRef:
|
|
kind: HelmRepository
|
|
name: bjw-s
|
|
namespace: flux-system
|
|
maxHistory: 2
|
|
install:
|
|
remediation:
|
|
retries: 3
|
|
upgrade:
|
|
cleanupOnFail: true
|
|
remediation:
|
|
strategy: rollback
|
|
retries: 3
|
|
uninstall:
|
|
keepHistory: false
|
|
dependsOn:
|
|
- name: scrutiny
|
|
values:
|
|
defaultPodOptions:
|
|
automountServiceAccountToken: false
|
|
# capabilities:
|
|
# add: ["SYS_RAWIO"] # allow access to smartctl
|
|
controllers:
|
|
scrutiny-collector:
|
|
type: daemonset
|
|
containers:
|
|
app:
|
|
image:
|
|
repository: ghcr.io/analogj/scrutiny
|
|
tag: master-collector@sha256:b1e4063a0186331714b6e8fa545ec88883c313e1ae9df35b600cbf689c73fe8e
|
|
env:
|
|
COLLECTOR_API_ENDPOINT: http://scrutiny.monitoring.svc.cluster.local:8080
|
|
COLLECTOR_HOST_ID:
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: spec.nodeName
|
|
TZ: ${TIMEZONE}
|
|
securityContext:
|
|
privileged: true
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 128Mi
|
|
limits:
|
|
memory: 128Mi
|
|
service:
|
|
app:
|
|
controller: *app
|
|
enabled: false
|
|
persistence:
|
|
config:
|
|
enabled: true
|
|
type: emptyDir
|
|
globalMounts:
|
|
- path: /opt/scrutiny/config
|
|
udev:
|
|
enabled: true
|
|
type: hostPath
|
|
hostPath: /run/udev
|
|
globalMounts:
|
|
- path: /run/udev
|
|
nvme0n1:
|
|
enabled: true
|
|
type: hostPath
|
|
hostPath: /dev/nvme0n1
|
|
globalMounts:
|
|
- path: /dev/nvme0n1
|
|
sda:
|
|
enabled: true
|
|
type: hostPath
|
|
hostPath: /dev/sda
|
|
globalMounts:
|
|
- path: /dev/sda
|