Merge pull request #45153 from haircommander/image-max-gc-beta-1.30

ImageGCMaxAge beta bump
This commit is contained in:
Kubernetes Prow Robot 2024-03-26 10:03:20 -07:00 committed by GitHub
commit cbf032283a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 2 deletions

View File

@ -141,7 +141,7 @@ until disk usage reaches the `LowThresholdPercent` value.
{{< feature-state feature_gate_name="ImageMaximumGCAge" >}} {{< feature-state feature_gate_name="ImageMaximumGCAge" >}}
As an alpha feature, you can specify the maximum time a local image can be unused for, As a beta feature, you can specify the maximum time a local image can be unused for,
regardless of disk usage. This is a kubelet setting that you configure for each node. regardless of disk usage. This is a kubelet setting that you configure for each node.
To configure the setting, enable the `ImageMaximumGCAge` To configure the setting, enable the `ImageMaximumGCAge`
@ -151,6 +151,13 @@ and also set a value for the `ImageMaximumGCAge` field in the kubelet configurat
The value is specified as a Kubernetes _duration_; for example, you can set the configuration 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. field to `3d12h`, which means 3 days and 12 hours.
{{< note >}}
This feature does not track image usage across kubelet restarts. If the kubelet
is restarted, the tracked image age is reset, causing the kubelet to wait the full
`ImageMaximumGCAge` duration before qualifying images for garbage collection
based on image age.
{{< /note>}}
### Container garbage collection {#container-image-garbage-collection} ### Container garbage collection {#container-image-garbage-collection}
The kubelet garbage collects unused containers based on the following variables, The kubelet garbage collects unused containers based on the following variables,

View File

@ -8,6 +8,10 @@ _build:
stages: stages:
- stage: alpha - stage: alpha
defaultValue: false defaultValue: false
fromVersion: "1.29" fromVersion: "1.29"
toVersion: "1.29"
- stage: beta
defaultValue: true
fromVersion: "1.30"
--- ---
Enables the kubelet configuration field `imageMaximumGCAge`, allowing an administrator to specify the age after which an image will be garbage collected. Enables the kubelet configuration field `imageMaximumGCAge`, allowing an administrator to specify the age after which an image will be garbage collected.