Merge pull request #46600 from mengjiao-liu/fix-garbage-collection-example-1-29

[release-1.29]: Fixed kubelet option ImageMaximumGCAge example for garbage-collection page
pull/46882/head
Kubernetes Prow Robot 2024-05-31 02:30:00 -07:00 committed by GitHub
commit 63766f7232
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 2 deletions

View File

@ -148,8 +148,17 @@ To configure the setting, enable the `ImageMaximumGCAge`
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/) for the kubelet, [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) for the kubelet,
and also set a value for the `ImageMaximumGCAge` field in the kubelet configuration file. and also set a value for the `ImageMaximumGCAge` field in the kubelet configuration file.
The value is specified as a Kubernetes _duration_; for example, you can set the configuration The value is specified as a Kubernetes _duration_;
field to `3d12h`, which means 3 days and 12 hours. Valid time units for the `ImageMaximumGCAge` field in the kubelet configuration file are:
- "ns" for nanoseconds
- "us" or "µs" for microseconds
- "ms" for milliseconds
- "s" for seconds
- "m" for minutes
- "h" for hours
For example, you can set the configuration field to `12h45m`,
which means 12 hours and 45 minutes.
### Container garbage collection {#container-image-garbage-collection} ### Container garbage collection {#container-image-garbage-collection}