From 26076cb21b67d0cfc3c31ddd9677e1b49b82f476 Mon Sep 17 00:00:00 2001 From: Keisuke MORI Date: Thu, 29 Aug 2019 13:36:28 +0900 Subject: [PATCH] 13-kube-single-master: use Taint based Evictions instead of pod-eviction-timeout (fixes #2) NOTE: Taint based Evictions timeout starts since the node status changed to NotReady (or Unreachable) so it would take 40s in total after the time of the actual failure: 40s = node-monitor-grace-period(20s) + default-not-ready-toleration-seconds(20s) as it's equal to pod-eviction-timeout=40s --- roles/kube-single-master/templates/kubeadm-config.yml.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/kube-single-master/templates/kubeadm-config.yml.j2 b/roles/kube-single-master/templates/kubeadm-config.yml.j2 index c2571e6..135c92f 100644 --- a/roles/kube-single-master/templates/kubeadm-config.yml.j2 +++ b/roles/kube-single-master/templates/kubeadm-config.yml.j2 @@ -9,6 +9,8 @@ kubernetesVersion: v1.15.3 apiServer: extraArgs: advertise-address: {{ NODE_IP }} + default-not-ready-toleration-seconds: "20" + default-unreachable-toleration-seconds: "20" networking: podSubnet: {{ POD_NETWORK_CIDR }} controllerManager: