theshire/kubernetes/apps/kube-system/fstrim/app/helmrelease.yaml

78 lines
2 KiB
YAML
Raw Normal View History

2024-02-25 10:58:24 -06:00
---
2024-10-14 09:26:12 -05:00
# 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
2024-02-25 10:58:24 -06:00
kind: HelmRelease
metadata:
name: &app fstrim
spec:
interval: 30m
chart:
spec:
chart: app-template
2024-10-10 06:01:18 -05:00
version: 3.5.1
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
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"
2024-05-28 07:35:48 -05:00
parallelism: 1 # Set to my total number of nodes
2024-02-25 10:58:24 -06:00
containers:
2024-03-19 17:38:08 -05:00
app:
2024-02-25 10:58:24 -06:00
image:
repository: ghcr.io/onedr0p/kubanetics
tag: 2024.12.0@sha256:3766252a7011d870a4c24bb107c9aa505dde35f4baf8101466c623b052bdbb4f
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
2024-05-28 07:35:48 -05:00
readOnly: true