Skip to content

Commit f5d7f92

Browse files
author
Mengjiao Liu
committed
Fixed kubelet option ImageMaximumGCAge example for garbage-collection page
1 parent 028bbf9 commit f5d7f92

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

content/en/docs/concepts/architecture/garbage-collection.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,17 @@ To configure the setting, enable the `ImageMaximumGCAge`
148148
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/) for the kubelet,
149149
and also set a value for the `ImageMaximumGCAge` field in the kubelet configuration file.
150150

151-
The value is specified as a Kubernetes _duration_; for example, you can set the configuration
152-
field to `3d12h`, which means 3 days and 12 hours.
151+
The value is specified as a Kubernetes _duration_;
152+
Valid time units for the `ImageMaximumGCAge` field in the kubelet configuration file are:
153+
- "ns" for nanoseconds
154+
- "us" or "µs" for microseconds
155+
- "ms" for milliseconds
156+
- "s" for seconds
157+
- "m" for minutes
158+
- "h" for hours
159+
160+
For example, you can set the configuration field to `12h45m`,
161+
which means 12 hours and 45 minutes.
153162

154163
{{< note >}}
155164
This feature does not track image usage across kubelet restarts. If the kubelet

0 commit comments

Comments
 (0)