How to check kubelet configurations currently in use?

9/11/2018

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.

-- Amanjeet Singh
kubelet
kubernetes

1 Answer

9/11/2018

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.

-- Michael Hausenblas
Source: StackOverflow