Questions about taint based eviction

255 views
Skip to first unread message

Guang Ya Liu

unread,
Nov 14, 2017, 5:27:10 PM11/14/17
to Kubernetes developer/contributor discussion
Hi,

I have some question for taint based eviction. With taint based eviction, when I shutdown a node or just kill kubelet on the node, node controller will add taint "node.alpha.kubernetes.io/unreachable:NoExecute" to the node, but I found that the pod on the node was not get evicted but keeps running, and I also found that the controller manager was already putting the node to taint queue as following in controller manager:

Node xxx is unresponsive as of 2017-11-14 10:14:07.675311698 +0000 UTC. Adding it to the Taint queue.

But There is no eviction was triggered on that node and the pods keeps on running. 

I was using Kubernetes 1.8.2 and 1.8.3, both does not work, but I check the code and found no logic error, am I missing anything for this?

/cc @gmarek

Thanks,

Guangya

edison xiang

unread,
Nov 14, 2017, 10:46:13 PM11/14/17
to Kubernetes developer/contributor discussion
Hi Guangya,

        Do you deploy DaemonSet pods in that Node?
DaemonSet pods are created with NoExecute tolerations for the following taints with no tolerationSeconds:
This ensures that DaemonSet pods are never evicted due to these problems, which matches the behavior when this feature is disabled
        If not, it is better to set tolerationSeconds when setting tolerations,
        Because if not set tolerationSeconds, pods are never evicted like DaemonSet pods.

tolerations:
  operator: "Exists"
  effect: "NoExecute"
  tolerationSeconds: 300

        I am not sure whether it will be helpful to you.
        

Best Regards,
        Edison Xiang 

Guang Ya Liu

unread,
Nov 15, 2017, 1:28:51 AM11/15/17
to edison xiang, Kubernetes developer/contributor discussion
Thanks Edison, I was not using daemonset but deployment. Seems to be an env issue, after re-install, it is working well. thanks.

--
You received this message because you are subscribed to the Google Groups "Kubernetes developer/contributor discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-dev+unsubscribe@googlegroups.com.
To post to this group, send email to kubernetes-dev@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-dev/f44d7e90-9b4d-483c-8ae6-fea40bca9e62%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages