Skip to content

Commit 06eb703

Browse files
committed
updated manual removal
1 parent 91e2239 commit 06eb703

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

articles/aks/image-cleaner.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Based on your configuration, ImageCleaner will generate an `ImageList` containin
113113

114114
## Manually remove images
115115

116-
To manually remove images from your cluster using ImageCleaner, first create an `ImageList`. For example:
116+
To manually remove images from your cluster using ImageCleaner, first create an `ImageList`. For example, save the following as `image-list.yml`:
117117

118118
```yml
119119
apiVersion: eraser.sh/v1alpha1
@@ -125,6 +125,12 @@ spec:
125125
- docker.io/library/alpine:3.7.3 # You can also use "*" to specify all non-running images
126126
```
127127
128+
And apply it to the cluster:
129+
130+
```bash
131+
kubectl apply -f image-list.yml
132+
```
133+
128134
## Disable ImageCleaner
129135

130136
To stop using ImageCleaner, you can disable it via the `--disable-image-cleaner` flag:

0 commit comments

Comments
 (0)