Skip to content

Commit f8161f8

Browse files
authored
Merge pull request #42702 from Affan-7/kubelet-parameters-via-config
Add eviction thresholds parameters
2 parents 0f9e81b + 27473c3 commit f8161f8

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

content/en/docs/tasks/administer-cluster/kubelet-config-file.md

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,22 @@ address: "192.168.0.8"
3535
port: 20250
3636
serializeImagePulls: false
3737
evictionHard:
38-
memory.available: "200Mi"
38+
memory.available: "100Mi"
39+
nodefs.available: "10%"
40+
nodefs.inodesFree: "5%"
41+
imagefs.available: "15%"
3942
```
4043
41-
In the example, the kubelet is configured to serve on IP address 192.168.0.8 and port 20250, pull images in parallel,
42-
and evict Pods when available memory drops below 200Mi. Since only one of the four evictionHard thresholds is configured,
43-
other evictionHard thresholds are reset to 0 from their built-in defaults.
44-
All other kubelet configuration values are left at their built-in defaults, unless overridden
45-
by flags. Command line flags which target the same value as a config file will override that value.
44+
In this example, the kubelet is configured with the following settings:
45+
46+
1. `address`: The kubelet will serve on IP address `192.168.0.8`.
47+
2. `port`: The kubelet will serve on port `20250`.
48+
3. `serializeImagePulls`: Image pulls will be done in parallel.
49+
4. `evictionHard`: The kubelet will evict Pods under one of the following conditions:
50+
- When the node's available memory drops below 100MiB.
51+
- When the node's main filesystem's available space is less than 10%.
52+
- When the image filesystem's available space is less than 15%.
53+
- When more than 95% of the node's main filesystem's inodes are in use.
4654

4755
{{< note >}}
4856
In the example, by changing the default value of only one parameter for
@@ -51,6 +59,9 @@ will be set to zero. In order to provide custom values, you should provide all
5159
the threshold values respectively.
5260
{{< /note >}}
5361

62+
The `imagefs` is an optional filesystem that container runtimes use to store container
63+
images and container writable layers.
64+
5465
## Start a kubelet process configured via the config file
5566

5667
{{< note >}}

0 commit comments

Comments
 (0)