From 97682374d55a65a64f26bfc28b661216d9e1824b Mon Sep 17 00:00:00 2001 From: chillje <33178127+chillje@users.noreply.github.com> Date: Thu, 13 Jun 2024 16:41:41 +0200 Subject: [PATCH] Update garbage-collection.md The documentation about the feature gate and option field "ImageMaximumGCAge" is misleading. The option field for the kubelet configuration is camelCase and needs to start with a lowercase "i" instead of an uppercase "I" (like for the feature gate option). --- .../en/docs/concepts/architecture/garbage-collection.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/en/docs/concepts/architecture/garbage-collection.md b/content/en/docs/concepts/architecture/garbage-collection.md index 41f67b4cbf53a..d6ac44a652b58 100644 --- a/content/en/docs/concepts/architecture/garbage-collection.md +++ b/content/en/docs/concepts/architecture/garbage-collection.md @@ -146,10 +146,10 @@ regardless of disk usage. This is a kubelet setting that you configure for each 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. +and also set a value for the `imageMaximumGCAge` field in the kubelet configuration file. The value is specified as a Kubernetes _duration_; -Valid time units for the `ImageMaximumGCAge` field in the kubelet configuration file are: +Valid time units for the `imageMaximumGCAge` field in the kubelet configuration file are: - "ns" for nanoseconds - "us" or "µs" for microseconds - "ms" for milliseconds @@ -163,7 +163,7 @@ which means 12 hours and 45 minutes. {{< 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 +`imageMaximumGCAge` duration before qualifying images for garbage collection based on image age. {{< /note>}} @@ -208,4 +208,4 @@ configure garbage collection: * Learn more about [ownership of Kubernetes objects](/docs/concepts/overview/working-with-objects/owners-dependents/). * Learn more about Kubernetes [finalizers](/docs/concepts/overview/working-with-objects/finalizers/). -* Learn about the [TTL controller](/docs/concepts/workloads/controllers/ttlafterfinished/) that cleans up finished Jobs. \ No newline at end of file +* Learn about the [TTL controller](/docs/concepts/workloads/controllers/ttlafterfinished/) that cleans up finished Jobs.