From 0cddb6b0973f50c9f5bce59e02986d855975aaef Mon Sep 17 00:00:00 2001 From: Shaun Crampton Date: Thu, 2 Nov 2017 17:31:35 +0000 Subject: [PATCH] Disable the grace termination period for the calico/node pod The grace period is unneccessary for calico/node and it delays restart of a new calico/node pod to take over routing and policy updates. Setting the grace period to 0 has the special meaning of doing a force deletion, which avoids a slow round-trip through the kubelet and API server. Fixes #55013 --- .../addons/calico-policy-controller/calico-node-daemonset.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cluster/addons/calico-policy-controller/calico-node-daemonset.yaml b/cluster/addons/calico-policy-controller/calico-node-daemonset.yaml index c4e0c4fa935..5c4b69f7140 100644 --- a/cluster/addons/calico-policy-controller/calico-node-daemonset.yaml +++ b/cluster/addons/calico-policy-controller/calico-node-daemonset.yaml @@ -24,6 +24,9 @@ spec: projectcalico.org/ds-ready: "true" hostNetwork: true serviceAccountName: calico + # Minimize downtime during a rolling upgrade or deletion; tell Kubernetes to do a "force + # deletion": https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods. + terminationGracePeriodSeconds: 0 containers: # Runs calico/node container on each Kubernetes node. This # container programs network policy and routes on each