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

@@ -96,3 +96,7 @@ tlsCipherSuites:
{% if kubelet_event_record_qps %}
eventRecordQPS: {{ kubelet_event_record_qps }}
{% endif %}
{% if kube_version is version('v1.21.0', '>=') %}
shutdownGracePeriod: {{ kubelet_shutdown_grace_period }}
shutdownGracePeriodCriticalPods: {{ kubelet_shutdown_grace_period_critical_pods }}
{% endif %}