From baae39fc3f00c5d671fa1f069cef063f483221a3 Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Sun, 25 Feb 2024 12:27:58 -0600 Subject: [PATCH] fstrim debug --- kubernetes/apps/kube-system/fstrim.yaml | 35 +++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 kubernetes/apps/kube-system/fstrim.yaml diff --git a/kubernetes/apps/kube-system/fstrim.yaml b/kubernetes/apps/kube-system/fstrim.yaml new file mode 100644 index 00000000..69d73a6a --- /dev/null +++ b/kubernetes/apps/kube-system/fstrim.yaml @@ -0,0 +1,35 @@ +apiVersion: v1 +kind: Pod +metadata: + name: fstrim-any + namespace: kube-system +spec: + # nodeName: nenya + containers: + - name: fstrim + image: ghcr.io/onedr0p/kubanetics:2024.2.5 + securityContext: + privileged: true + command: ["/bin/bash", "-c", "while true; do sleep 10; done"] + env: + - name: SCRIPT_NAME + value: fstrim.sh + resources: + requests: + cpu: 100m + memory: 512Mi + limits: + cpu: 4000m + memory: 1000Mi + volumeMounts: + - name: procfs + mountPath: /proc + - name: netfs + mountPath: /sys + volumes: + - name: procfs + hostPath: + path: /proc + - name: netfs + hostPath: + path: /sys \ No newline at end of file