2024-02-25 12:27:58 -06:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Pod
|
|
|
|
metadata:
|
|
|
|
name: fstrim-any
|
|
|
|
namespace: kube-system
|
|
|
|
spec:
|
|
|
|
# nodeName: nenya
|
|
|
|
containers:
|
|
|
|
- name: fstrim
|
2024-10-08 19:35:18 -05:00
|
|
|
image: ghcr.io/onedr0p/kubanetics:2024.10.6
|
2024-02-25 12:27:58 -06:00
|
|
|
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:
|
2024-09-04 13:35:14 -05:00
|
|
|
path: /sys
|