fstrim debug
This commit is contained in:
parent
5a7c05a9b9
commit
baae39fc3f
1 changed files with 35 additions and 0 deletions
35
kubernetes/apps/kube-system/fstrim.yaml
Normal file
35
kubernetes/apps/kube-system/fstrim.yaml
Normal 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
|
Loading…
Reference in a new issue