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-12-09 08:34:54 -06:00
|
|
|
image: ghcr.io/onedr0p/kubanetics:2024.12.0
|
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
|