mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 10:19:50 +00:00
Conditionally add graceful shutdown Kubelet config
Signed-off-by: torredil <torredil@amazon.com>
This commit is contained in:
parent
6e8e1f53b0
commit
a365eddf79
@ -1029,6 +1029,18 @@ authentication:
|
||||
x509:
|
||||
clientCAFile: /etc/srv/kubernetes/pki/ca-certificates.crt
|
||||
EOF
|
||||
|
||||
if [[ -n "${SHUTDOWN_GRACE_PERIOD:-}" ]]; then
|
||||
cat <<EOF
|
||||
shutdownGracePeriod: ${SHUTDOWN_GRACE_PERIOD}
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [[ -n "${SHUTDOWN_GRACE_PERIOD_CRITICAL_PODS:-}" ]]; then
|
||||
cat <<EOF
|
||||
shutdownGracePeriodCriticalPods: ${SHUTDOWN_GRACE_PERIOD_CRITICAL_PODS}
|
||||
EOF
|
||||
fi
|
||||
}
|
||||
|
||||
# cat the Kubelet config yaml for windows nodes
|
||||
|
Loading…
Reference in New Issue
Block a user