fstrim debug

This commit is contained in:
Joseph Hanson 2024-02-25 12:27:58 -06:00
parent 5a7c05a9b9
commit baae39fc3f
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o

View file

@ -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