Skip to content

Commit 6dc2439

Browse files
authored
Merge pull request #47038 from mburke5678/BZ-2098152
Default evictionHard configuration for other parameters are wiped after only change memory.available with kubeletconfig
2 parents 162cc29 + 0a50eb3 commit 6dc2439

File tree

3 files changed

+23
-11
lines changed

3 files changed

+23
-11
lines changed

modules/compliance-removing-kubeletconfig.adoc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,12 @@ status:
5757
----
5858
<1> The scan name of the remediation.
5959
<2> The remediation that was added to the `KubeletConfig` objects.
60-
+
60+
+
61+
[NOTE]
62+
====
63+
If the remediation invokes an `evictionHard` kubelet configuration, you must specify all of the `evictionHard` parameters: `memory.available`, `nodefs.available`, `nodefs.inodesFree`, `imagefs.available`, and `imagefs.inodesFree`. If you do not specify all parameters, only the specified parameters are applied and the remediation will not function properly.
64+
====
65+
6166
. Remove the remediation:
6267

6368
.. Set `apply` to false for the remediation object:

modules/nodes-nodes-garbage-collection-configuring.adoc

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -104,26 +104,28 @@ spec:
104104
nodefs.inodesFree: "1m30s"
105105
imagefs.available: "1m30s"
106106
imagefs.inodesFree: "1m30s"
107-
evictionHard:
107+
evictionHard: <6>
108108
memory.available: "200Mi"
109109
nodefs.available: "5%"
110110
nodefs.inodesFree: "4%"
111111
imagefs.available: "10%"
112112
imagefs.inodesFree: "5%"
113-
evictionPressureTransitionPeriod: 0s <6>
114-
imageMinimumGCAge: 5m <7>
115-
imageGCHighThresholdPercent: 80 <8>
116-
imageGCLowThresholdPercent: 75 <9>
113+
evictionPressureTransitionPeriod: 0s <7>
114+
imageMinimumGCAge: 5m <8>
115+
imageGCHighThresholdPercent: 80 <9>
116+
imageGCLowThresholdPercent: 75 <10>
117117
----
118118
<1> Name for the object.
119119
<2> Selector label.
120-
<3> Type of eviction: `EvictionSoft` and `EvictionHard`.
120+
<3> Type of eviction: `evictionSoft` or `evictionHard`.
121121
<4> Eviction thresholds based on a specific eviction trigger signal.
122122
<5> Grace periods for the soft eviction. This parameter does not apply to `eviction-hard`.
123-
<6> The duration to wait before transitioning out of an eviction pressure condition.
124-
<7> The minimum age for an unused image before the image is removed by garbage collection.
125-
<8> The percent of disk usage (expressed as an integer) which triggers image garbage collection.
126-
<9> The percent of disk usage (expressed as an integer) to which image garbage collection attempts to free.
123+
<6> Eviction thresholds based on a specific eviction trigger signal.
124+
For `evictionHard` you must specify all of these parameters. If you do not specify all parameters, only the specified parameters are applied and the garbage collection will not function properly.
125+
<7> The duration to wait before transitioning out of an eviction pressure condition.
126+
<8> The minimum age for an unused image before the image is removed by garbage collection.
127+
<9> The percent of disk usage (expressed as an integer) that triggers image garbage collection.
128+
<10> The percent of disk usage (expressed as an integer) that image garbage collection attempts to free.
127129

128130
. Create the object:
129131
+

modules/nodes-nodes-garbage-collection-containers.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ a| * `nodefs.available`
3434
| The available disk space or inodes on the node root file system, `nodefs`, or image file system, `imagefs`.
3535
|===
3636

37+
[NOTE]
38+
====
39+
For `evictionHard` you must specify all of these parameters. If you do not specify all parameters, only the specified parameters are applied and the garbage collection will not function properly.
40+
====
41+
3742
If a node is oscillating above and below a soft eviction threshold, but not exceeding its associated grace period, the corresponding node would constantly oscillate between `true` and `false`. As a consequence, the scheduler could make poor scheduling decisions.
3843

3944
To protect against this oscillation, use the `eviction-pressure-transition-period` flag to control how long {product-title} must wait before transitioning out of a pressure condition. {product-title} will not set an eviction threshold as being met for the specified pressure condition for the period specified before toggling the condition back to false.

0 commit comments

Comments
 (0)