2024-02-25 10:58:24 -06:00
|
|
|
---
|
2024-03-19 17:38:08 -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-02-25 10:58:24 -06:00
|
|
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
|
|
|
kind: HelmRelease
|
|
|
|
metadata:
|
|
|
|
name: &app fstrim
|
|
|
|
spec:
|
|
|
|
interval: 30m
|
|
|
|
chart:
|
|
|
|
spec:
|
|
|
|
chart: app-template
|
2024-04-04 02:04:28 -05:00
|
|
|
version: 3.1.0
|
2024-02-25 10:58:24 -06:00
|
|
|
sourceRef:
|
|
|
|
kind: HelmRepository
|
|
|
|
name: bjw-s
|
|
|
|
namespace: flux-system
|
|
|
|
install:
|
|
|
|
remediation:
|
|
|
|
retries: 3
|
|
|
|
upgrade:
|
|
|
|
cleanupOnFail: true
|
|
|
|
remediation:
|
|
|
|
retries: 3
|
2024-03-19 18:43:34 -05:00
|
|
|
strategy: rollback
|
2024-02-25 10:58:24 -06:00
|
|
|
values:
|
|
|
|
controllers:
|
2024-03-19 17:38:08 -05:00
|
|
|
kubanetics:
|
2024-02-25 10:58:24 -06:00
|
|
|
type: cronjob
|
|
|
|
cronjob:
|
|
|
|
schedule: "@weekly"
|
|
|
|
parallelism: 6 # Set to my total number of nodes
|
|
|
|
containers:
|
2024-03-19 17:38:08 -05:00
|
|
|
app:
|
2024-02-25 10:58:24 -06:00
|
|
|
image:
|
|
|
|
repository: ghcr.io/onedr0p/kubanetics
|
2024-04-17 17:01:13 -05:00
|
|
|
tag: 2024.4.1@sha256:28addcaf03a83863d58e45ed98fc5339a24fec65900907beee38fe7fe8117bfe
|
2024-02-25 10:58:24 -06:00
|
|
|
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
|