Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image Cleaner (Eraser) enabled on AKS cluster #2912

Closed
CocoWang-wql opened this issue Apr 27, 2022 · 15 comments
Closed

Image Cleaner (Eraser) enabled on AKS cluster #2912

CocoWang-wql opened this issue Apr 27, 2022 · 15 comments
Assignees

Comments

@CocoWang-wql
Copy link
Contributor

CocoWang-wql commented Apr 27, 2022

With Image Cleaner, we could detect & remove all the unused & vulnerable images stored on AKS nodes.
https://docs.microsoft.com/en-us/azure/aks/image-cleaner?tabs=azure-cli

@ghost ghost added the triage label Apr 27, 2022
@ghost
Copy link

ghost commented Apr 27, 2022

Hi CocoWang-wql, AKS bot here 👋
Thank you for posting on the AKS Repo, I'll do my best to get a kind human from the AKS team to assist you.

I might be just a bot, but I'm told my suggestions are normally quite good, as such:

  1. If this case is urgent, please open a Support Request so that our 24/7 support team may help you faster.
  2. Please abide by the AKS repo Guidelines and Code of Conduct.
  3. If you're having an issue, could it be described on the AKS Troubleshooting guides or AKS Diagnostics?
  4. Make sure your subscribed to the AKS Release Notes to keep up to date with all that's new on AKS.
  5. Make sure there isn't a duplicate of this issue already reported. If there is, feel free to close this one and '+1' the existing issue.
  6. If you have a question, do take a look at our AKS FAQ. We place the most common ones there!

@ghost
Copy link

ghost commented Jun 15, 2022

Action required from @Azure/aks-pm

@ghost ghost added the Needs Attention 👋 Issues needs attention/assignee/owner label Jun 15, 2022
@miwithro miwithro removed action-required Needs Attention 👋 Issues needs attention/assignee/owner labels Jun 15, 2022
@CocoWang-wql CocoWang-wql added the feature-request Requested Features label Jun 15, 2022
@CocoWang-wql CocoWang-wql changed the title Eraser enabled on AKS cluster Image Cleaner (Eraser) enabled on AKS cluster Sep 7, 2022
@CocoWang-wql CocoWang-wql self-assigned this Sep 8, 2022
@littleccguy
Copy link

Hello,
At work, we redeploy images to our cluster daily. There seems to be a lot of stale images left around. I tried to get this working on my cluster, but I cannot enable it. All other steps in the doc worked fine up to the point of enabling. The response back was
unrecognized arguments: --enable-image-cleaner

@miwithro
Copy link
Contributor

@littleccguy how are you trying to deploy image cleaner- terraform, cli etc.

If you are using cli you need to have the updated aks-preview API loaded

@CocoWang-wql
Copy link
Contributor Author

Pls use 'az --version' to check the version and ensure you have aks-preview 0.5.96 or later CLI extension installed.
Also run the below command to ensure 'ImageCleaner' is 'registered'

az feature list -o table --query "[?contains(name, 'Microsoft.ContainerService/EnableImageCleanerPreview')].{Name:name,State:properties.state}"

@littleccguy
Copy link

littleccguy commented Oct 28, 2022 via email

@CocoWang-wql
Copy link
Contributor Author

CocoWang-wql commented Oct 29, 2022

It's on your client (local, azure bash, jump box, etc).
The detailed steps are:

  1. Check whether you have installed aks-preview extension
az extension list  
  1. Remove the extension if you installed
az extension remove -n aks-preview
  1. Install the latest version
az extension add -n aks-preview

@littleccguy
Copy link

Thank you @CocoWang-wql. I got it installed and the interval set. Is there anyway to know/set what time of day this would run?

@CocoWang-wql
Copy link
Contributor Author

Hello @littleccguy , sorry for the delay as the message is buried. The first time of running is the installation time. The second running time is installation time + scan interval time. You can control both installation time and interval to set the desired running time.

@littleccguy
Copy link

Thank you

@mdaslamansari
Copy link

What is its expected GA timeframe?

@CocoWang-wql
Copy link
Contributor Author

Image Cleaner is GA on 20th August.

@tommychoy
Copy link

@CocoWang-wql. Image Cleaner is now GA, but it is still required to install the aks-preview extension to enable it?

@CocoWang-wql
Copy link
Contributor Author

We don't need the 'aks-preview extension' anymore. Did you meet any error when enabling image cleaner without aks-preview extension? @tommychoy

@tommychoy
Copy link

@CocoWang-wql , just re-ran the command in cloud shell, the aks-preview extension requirements does not pop-up anymore. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Archive (GA older than 1 month)
Development

No branches or pull requests

6 participants