77 lines
2 KiB
YAML
77 lines
2 KiB
YAML
---
|
|
# 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:
|
|
name: &app fstrim
|
|
spec:
|
|
interval: 30m
|
|
chart:
|
|
spec:
|
|
chart: app-template
|
|
version: 3.5.1
|
|
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:
|
|
repository: ghcr.io/onedr0p/kubanetics
|
|
tag: 2024.11.1@sha256:875b7c22fbb046958ae0116b4a7e9ea81062cf60f54d5b27e53ebf29078bdcc4
|
|
env:
|
|
SCRIPT_NAME: fstrim.sh
|
|
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:
|
|
procfs:
|
|
type: hostPath
|
|
hostPath: /proc
|
|
hostPathType: Directory
|
|
globalMounts:
|
|
- path: /host/proc
|
|
readOnly: true
|
|
netfs:
|
|
type: hostPath
|
|
hostPath: /sys
|
|
hostPathType: Directory
|
|
globalMounts:
|
|
- path: /host/net
|
|
readOnly: true
|