From f5cdd21bc5db71c75681d7f3883ce18704423495 Mon Sep 17 00:00:00 2001 From: Chris Friesen Date: Wed, 26 Jun 2019 15:38:52 -0600 Subject: [PATCH] Change default pod tolerations to 30sec By default, pods will get a toleration of 300 seconds for the notReady:NoExecute and unreachable:NoExecute taints. This is excessively long for our purposes. This commit changes the commandline args for kube-apiserver to use 30 seconds for each of these instead to get a faster response time. Change-Id: Ic7153e0ea03a1835efcd907cbcef8c8715a0539d Partial-Bug: 1829432 Signed-off-by: Chris Friesen --- .../src/modules/platform/templates/kubeadm.yaml.erb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/puppet-manifests/src/modules/platform/templates/kubeadm.yaml.erb b/puppet-manifests/src/modules/platform/templates/kubeadm.yaml.erb index 2a5bab2768..84c4033abe 100644 --- a/puppet-manifests/src/modules/platform/templates/kubeadm.yaml.erb +++ b/puppet-manifests/src/modules/platform/templates/kubeadm.yaml.erb @@ -10,6 +10,9 @@ etcd: external: endpoints: - <%= @etcd_endpoint %> +apiServerExtraArgs: + default-not-ready-toleration-seconds: "30" + default-unreachable-toleration-seconds: "30" apiServerCertSANs: - "<%= @apiserver_advertise_address %>" - "<%= @apiserver_loopback_address %>"