mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
121 lines
3.0 KiB
YAML
121 lines
3.0 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
|
|
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
|
|
values:
|
|
defaultPodOptions:
|
|
automountServiceAccountToken: false
|
|
controllers:
|
|
scrutiny:
|
|
annotations:
|
|
reloader.stakater.com/auto: "true"
|
|
containers:
|
|
app:
|
|
image:
|
|
repository: ghcr.io/analogj/scrutiny
|
|
tag: master-web@sha256:6f66edc0840c444b21903f66805a97cf6118d113bb3ae435cc84298b653d593f
|
|
env:
|
|
TZ: ${TIMEZONE}
|
|
SCRUTINY_WEB_INFLUXDB_HOST: influx.database.svc.cluster.local
|
|
envFrom:
|
|
- secretRef:
|
|
name: scrutiny-secret
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 128Mi
|
|
limits:
|
|
memory: 128Mi
|
|
service:
|
|
app:
|
|
controller: *app
|
|
ports:
|
|
http:
|
|
port: &port 8080
|
|
ingress:
|
|
app:
|
|
enabled: true
|
|
className: nginx
|
|
annotations:
|
|
hajimari.io/icon: mdi:harddiskstatus
|
|
hosts:
|
|
- host: &host "{{ .Release.Name }}.${SECRET_EXTERNAL_DOMAIN}"
|
|
paths:
|
|
- path: /
|
|
service:
|
|
identifier: app
|
|
port: http
|
|
tls:
|
|
- hosts:
|
|
- *host
|
|
probes:
|
|
liveness:
|
|
enabled: true
|
|
custom: true
|
|
spec:
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 10
|
|
timeoutSeconds: 1
|
|
failureThreshold: 3
|
|
httpGet:
|
|
path: /api/health
|
|
port: *port
|
|
readiness:
|
|
enabled: true
|
|
custom: true
|
|
spec:
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 10
|
|
timeoutSeconds: 1
|
|
failureThreshold: 3
|
|
httpGet:
|
|
path: /api/health
|
|
port: *port
|
|
startup:
|
|
enabled: true
|
|
custom: true
|
|
spec:
|
|
initialDelaySeconds: 0
|
|
timeoutSeconds: 1
|
|
periodSeconds: 5
|
|
failureThreshold: 30
|
|
httpGet:
|
|
path: /api/health
|
|
port: *port
|
|
persistence:
|
|
config:
|
|
enabled: true
|
|
existingClaim: *app
|
|
globalMounts:
|
|
- path: /opt/scrutiny/config
|
|
udev:
|
|
enabled: true
|
|
type: hostPath
|
|
hostPath: /run/udev
|
|
globalMounts:
|
|
- path: /run/udev
|