How can I know kubelet will check which folders or any restful api I can invoke to know the current usage of nodefs and imagefs, and free usage?
--eviction-hard=memory.available<200Mi,nodefs.available<5%,imagefs.available<5% \
--eviction-soft=memory.available<500Mi,nodefs.available<10%,imagefs.available<10% \
--eviction-soft-grace-period=memory.available=2m,nodefs.available=240h,imagefs.available=240h \
Kubernetes get that info from a container engine, it most cases - docker. It do not check any folders or files, it get info on filesystem level.
To get that data, you can use Prometheus together with Node Exporter or CAdvisor.