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

35 lines
747 B
YAML
Raw Normal View History

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
image: ghcr.io/onedr0p/kubanetics:2024.7.1
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:
path: /sys