mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 04:06:03 +00:00
Merge pull request #125413 from torredil/update-kubelet-config
Conditionally add the graceful shutdown Kubelet parameters
This commit is contained in:
commit
78377c4d10
@ -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