Skip to content

Commit 6eb663a

Browse files
Merge pull request #212469 from CocoWang-wql/patch-17
Update image-cleaner.md
2 parents 2343c64 + 19776a7 commit 6eb663a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

articles/aks/image-cleaner.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@ ms.author: nickoman
55
author: nickomang
66
services: container-service
77
ms.topic: article
8-
ms.date: 09/16/2022
8+
ms.date: 09/26/2022
99
---
1010

1111
# Use ImageCleaner to clean up stale images on your Azure Kubernetes Service cluster (preview)
1212

1313
It's common to use pipelines to build and deploy images on Azure Kubernetes Service (AKS) clusters. While great for image creation, this process often doesn't account for the stale images left behind and can lead to image bloat on cluster nodes. These images can present security issues as they may contain vulnerabilities. By cleaning these unreferenced images, you can remove an area of risk in your clusters. When done manually, this process can be time intensive, which ImageCleaner can mitigate via automatic image identification and removal.
1414

15-
ImageCleaner is a feature inherited from Eraser. For more information on Eraser, see [Eraser plugin](https://github.com/Azure/eraser)
15+
> [!NOTE]
16+
> ImageCleaner is a feature based on [Eraser](https://github.com/Azure/eraser).
17+
> On an AKS cluster, the feature name and property name is `ImageCleaner` while the relevant ImageCleaner pods' names contain `Eraser`.
1618
1719
[!INCLUDE [preview features callout](./includes/preview/preview-callout.md)]
1820

@@ -114,6 +116,7 @@ az aks update -g MyResourceGroup -n MyManagedCluster \
114116
--image-cleaner-interval-hours 48
115117
```
116118

119+
After the feature is enabled, the `eraser-controller-manager-xxx` pod and `collector-aks-xxx` pod will be deployed.
117120
Based on your configuration, ImageCleaner will generate an `ImageList` containing non-running and vulnerable images at the desired interval. ImageCleaner will automatically remove these images from cluster nodes.
118121

119122
## Manually remove images
@@ -136,7 +139,7 @@ And apply it to the cluster:
136139
kubectl apply -f image-list.yml
137140
```
138141

139-
A job will trigger which causes ImageCleaner to remove the desired images from all nodes.
142+
A job named `eraser-aks-xxx`will be triggerred which causes ImageCleaner to remove the desired images from all nodes.
140143

141144
## Disable ImageCleaner
142145

0 commit comments

Comments
 (0)