Enable Graceful Node Shutdown for Kubernetes >= 1.21.0 (#7746)

* Enable Graceful Node Shutdown for Kubernetes >= 1.21.0

* Add sample graceful shutdown parameters
This commit is contained in:
Cristian Calin
2021-06-28 09:53:25 +03:00
committed by GitHub
parent a2cf6816ce
commit a3e34f589a
4 changed files with 22 additions and 0 deletions

View File

@@ -230,6 +230,13 @@ kube_api_aggregator_routing: false
# Profiling
kube_profiling: false
# Graceful Node Shutdown
# This requires kubernetes >= 1.21.0
kubelet_shutdown_grace_period: 60s
# kubelet_shutdown_grace_period_critical_pods should be less than kubelet_shutdown_grace_period
# to give normal pods time to be gracefully evacuated
kubelet_shutdown_grace_period_critical_pods: 20s
# Container for runtime
container_manager: docker