Skip to content

Commit 5ccef80

Browse files
authored
Merge pull request #48911 from vaibhav2107/inherit-eviction
Document MergeDefaultEvictionSettings Kubelet Config
2 parents 40c3c7f + 578c457 commit 5ccef80

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

content/en/docs/concepts/scheduling-eviction/node-pressure-eviction.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,10 @@ These default values of hard eviction thresholds will only be set if none
227227
of the parameters is changed. If you change the value of any parameter,
228228
then the values of other parameters will not be inherited as the default
229229
values and will be set to zero. In order to provide custom values, you
230-
should provide all the thresholds respectively.
230+
should provide all the thresholds respectively. You can also set the kubelet config
231+
MergeDefaultEvictionSettings to true in the kubelet configuration file.
232+
If set to true and any paramater is changed, then the other parameters will
233+
inherit their default values instead of 0.
231234

232235
The `containerfs.available` and `containerfs.inodesFree` (Linux nodes) default
233236
eviction thresholds will be set as follows:

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ In the example, by changing the default value of only one parameter for
7070
evictionHard, the default values of other parameters will not be inherited and
7171
will be set to zero. In order to provide custom values, you should provide all
7272
the threshold values respectively.
73+
Alternatively, you can set the MergeDefaultEvictionSettings to true in the kubelet
74+
configuration file, if any parameter is changed then the other parameters will inherit
75+
their default values instead of 0.
7376
{{< /note >}}
7477

7578
The `imagefs` is an optional filesystem that container runtimes use to store container
@@ -248,6 +251,7 @@ they can follow these steps to inspect the kubelet configuration:
248251
"imagefs.inodesFree": "5%"
249252
},
250253
"evictionPressureTransitionPeriod": "1m0s",
254+
"mergeDefaultEvictionSettings": false,
251255
"enableControllerAttachDetach": true,
252256
"makeIPTablesUtilChains": true,
253257
"iptablesMasqueradeBit": 14,

0 commit comments

Comments
 (0)