--- # 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: 1h chartRef: kind: OCIRepository name: app-template namespace: flux-system install: remediation: retries: 3 upgrade: cleanupOnFail: true remediation: strategy: rollback retries: 3 values: controllers: fstrim: type: cronjob cronjob: schedule: 0 0 * * 0 parallelism: 4 # Set to total number of nodes successfulJobsHistory: 1 failedJobsHistory: 1 containers: app: image: repository: ghcr.io/onedr0p/kubanetics tag: 2025.3.2@sha256:309a7587c2aa7ce6a99812a61c5024240a21b708f94802a09105c61513572164 env: SCRIPT_NAME: fstrim.sh resources: requests: cpu: 25m limits: memory: 128Mi securityContext: privileged: true defaultPodOptions: 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