Merge pull request #46600 from mengjiao-liu/fix-garbage-collection-example-1-29
[release-1.29]: Fixed kubelet option ImageMaximumGCAge example for garbage-collection pagepull/46882/head
commit
63766f7232
|
@ -148,8 +148,17 @@ To configure the setting, enable the `ImageMaximumGCAge`
|
|||
[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.
|
||||
|
||||
The value is specified as a Kubernetes _duration_; for example, you can set the configuration
|
||||
field to `3d12h`, which means 3 days and 12 hours.
|
||||
The value is specified as a Kubernetes _duration_;
|
||||
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}
|
||||
|
||||
|
|
Loading…
Reference in New Issue