-
Notifications
You must be signed in to change notification settings - Fork 564
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: allow graceful node shutdown to be overridden
The problem is that these values needs to be set to zero if the kubelet feature gate is disabled, so we can't assume that we can override zero value with the proper config, so we have to do an extra check on the supplied configuration. Also creates KB article on disabling this feature gate. Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
- Loading branch information
Showing
3 changed files
with
105 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
title: "Knowledge Base" | ||
weight: 1999 | ||
description: "Recipes for common configuration tasks with Talos Linux." | ||
--- | ||
|
||
## Disabling `GracefulNodeShutdown` on a node | ||
|
||
Talos Linux enables [Graceful Node Shutdown](https://kubernetes.io/docs/concepts/architecture/nodes/#graceful-node-shutdown) Kubernetes feature by default. | ||
|
||
If this feature should be disabled, modify the `kubelet` part of the machine configuration with: | ||
|
||
```yaml | ||
machine: | ||
kubelet: | ||
extraArgs: | ||
feature-gates: GracefulNodeShutdown=false | ||
extraConfig: | ||
shutdownGracePeriod: 0s | ||
shutdownGracePeriodCriticalPods: 0s | ||
``` |