Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check kubelet configurations currently in use?

I basically want to find the hard eviction strategy that kubelet is currently using.
I checked the settings in the /etc/systemd/system/kubelet.service file on my K8s node. In that the strategy I mentioned is as follows:
--eviction-hard=nodefs.available<3Gi

However, my pods seem to be evicted when the nodefs.available is <10% (default kubernetes settings) I have been unable to find a way a way to know the current parameters that are being used by kubernetes.

like image 763
Amanjeet Singh Avatar asked Sep 11 '18 03:09

Amanjeet Singh


1 Answers

It is possible to dump the current kubelet configuration using kubectl proxy along with the /api/v1/nodes/${TARGET_NODE_FOR_KUBELET}/proxy/configz path, details see linked Kubernetes docs.

like image 172
Michael Hausenblas Avatar answered Oct 03 '22 10:10

Michael Hausenblas