onedr0p / kubanetics

A container with various scripts for Kubernetes
Apache License 2.0
13 stars 1 forks source link

fstrim.sh update #6

Closed jahanson closed 8 months ago

jahanson commented 8 months ago

Related to #4. This is what works for me. I changed the path from /host/proc to /proc, restricted the PID to the first result from pgrep, and simplified the trim command to trim -v -a.

Please let me know if this works for you.

onedr0p commented 8 months ago

If using this in a cronjob and not testing, KUBELET_PID should always be a single process...

I've made some changed, thanks!