2024-05-28 09:43:40 -05:00
|
|
|
---
|
|
|
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2beta2.schema.json
|
2024-05-28 10:02:09 -05:00
|
|
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
2024-05-28 09:43:40 -05:00
|
|
|
kind: HelmRelease
|
|
|
|
metadata:
|
|
|
|
name: &app zfs-scrub
|
|
|
|
spec:
|
|
|
|
interval: 30m
|
|
|
|
chart:
|
|
|
|
spec:
|
|
|
|
chart: app-template
|
2024-05-28 10:02:16 -05:00
|
|
|
version: 3.2.1
|
2024-05-28 09:43:40 -05:00
|
|
|
sourceRef:
|
|
|
|
kind: HelmRepository
|
|
|
|
name: bjw-s
|
|
|
|
namespace: flux-system
|
|
|
|
install:
|
|
|
|
remediation:
|
|
|
|
retries: 3
|
|
|
|
upgrade:
|
|
|
|
cleanupOnFail: true
|
|
|
|
remediation:
|
|
|
|
retries: 3
|
|
|
|
strategy: rollback
|
|
|
|
values:
|
|
|
|
controllers:
|
|
|
|
kubanetics:
|
|
|
|
type: cronjob
|
|
|
|
cronjob:
|
|
|
|
schedule: "@weekly"
|
|
|
|
parallelism: 1 # Set to my total number of nodes
|
|
|
|
containers:
|
|
|
|
app:
|
|
|
|
image:
|
2024-06-18 16:38:41 -05:00
|
|
|
repository: ghcr.io/aarnaud/talos-debug-tools
|
|
|
|
tag: latest-6.6.29
|
|
|
|
command: ["/bin/bash", "-c"]
|
|
|
|
args:
|
|
|
|
- |
|
|
|
|
# Trim filesystems
|
|
|
|
chroot /host /usr/local/sbin/zpool scrub nahar
|
2024-05-28 09:43:40 -05:00
|
|
|
probes:
|
|
|
|
liveness:
|
|
|
|
enabled: false
|
|
|
|
readiness:
|
|
|
|
enabled: false
|
|
|
|
startup:
|
|
|
|
enabled: false
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 25m
|
|
|
|
limits:
|
|
|
|
memory: 128Mi
|
|
|
|
securityContext:
|
|
|
|
privileged: true
|
|
|
|
pod:
|
|
|
|
hostNetwork: true
|
|
|
|
hostPID: true
|
|
|
|
topologySpreadConstraints:
|
|
|
|
- maxSkew: 1
|
|
|
|
topologyKey: kubernetes.io/hostname
|
|
|
|
whenUnsatisfiable: DoNotSchedule
|
|
|
|
labelSelector:
|
|
|
|
matchLabels:
|
|
|
|
app.kubernetes.io/name: *app
|
|
|
|
persistence:
|
2024-06-18 16:33:46 -05:00
|
|
|
netfs:
|
2024-05-28 09:43:40 -05:00
|
|
|
type: hostPath
|
2024-06-18 16:33:46 -05:00
|
|
|
hostPath: /sys
|
2024-05-28 09:43:40 -05:00
|
|
|
hostPathType: Directory
|
|
|
|
globalMounts:
|
2024-06-18 16:33:46 -05:00
|
|
|
- path: /sys
|
2024-05-28 09:43:40 -05:00
|
|
|
readOnly: true
|
2024-06-18 16:33:46 -05:00
|
|
|
dev:
|
2024-05-28 09:43:40 -05:00
|
|
|
type: hostPath
|
2024-06-18 16:33:46 -05:00
|
|
|
hostPath: /dev
|
2024-05-28 09:43:40 -05:00
|
|
|
hostPathType: Directory
|
|
|
|
globalMounts:
|
2024-06-18 16:33:46 -05:00
|
|
|
- path: /dev
|
|
|
|
modules:
|
|
|
|
type: hostPath
|
|
|
|
hostPath: /lib/modules
|
|
|
|
hostPathType: ""
|
|
|
|
globalMounts:
|
|
|
|
- path: /lib/modules
|
|
|
|
udev:
|
|
|
|
type: hostPath
|
|
|
|
hostPath: /run/udev
|
|
|
|
hostPathType: ""
|
|
|
|
globalMounts:
|
|
|
|
- path: /run/udev
|
|
|
|
localtime:
|
|
|
|
type: hostPath
|
|
|
|
hostPath: /etc/localtime
|
|
|
|
hostPathType: ""
|
|
|
|
globalMounts:
|
|
|
|
- path: /etc/localtime
|
|
|
|
host:
|
|
|
|
type: hostPath
|
|
|
|
hostPath: /
|
|
|
|
hostPathType: Directory
|
|
|
|
globalMounts:
|
|
|
|
- path: /host
|
|
|
|
efivars:
|
|
|
|
type: hostPath
|
|
|
|
hostPath: /sys/firmware/efi/efivars
|
|
|
|
hostPathType: ""
|
|
|
|
globalMounts:
|
|
|
|
- path: /sys/firmware/efi/efivars
|