Is there any cli command for kubelet to know eviction policy/criteria for node?

2/6/2019

I am getting a taint on one node about disk-pressure. I would like to check current eviction criteria for that node.

Do we have kubelet command to know current eviction policy/criteria?

-- Dushyant
kubeadm
kubectl
kubelet
kubernetes

2 Answers

7/4/2019

We can check the default criteria by looking at the kubelet flags.

kubelet --help | grep eviction

These values can be modified by adding below line in the config file.

--eviction-hard="memory.available<200Mi,nodefs.available<500Mi,imagefs.available<1Gi" \

source :- https://kubernetes.io/docs/tasks/administer-cluster/out-of-resource/#without-imagefs-1

-- Chakravarthy Gopi
Source: StackOverflow

2/6/2019

There is no way to check the eviction policy info unless hard eviction thresholds are defined and set in kubelet.

you can describe the node ( kubectl describe no ) to know the reason as why the pods are not getting scheduled on that node

-- P Ekambaram
Source: StackOverflow