Commit 0cddb6b0 authored by Shaun Crampton's avatar Shaun Crampton

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
parent 40212c17
...@@ -24,6 +24,9 @@ spec: ...@@ -24,6 +24,9 @@ spec:
projectcalico.org/ds-ready: "true" projectcalico.org/ds-ready: "true"
hostNetwork: true hostNetwork: true
serviceAccountName: calico 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: containers:
# Runs calico/node container on each Kubernetes node. This # Runs calico/node container on each Kubernetes node. This
# container programs network policy and routes on each # container programs network policy and routes on each
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment