From 52b24a6d6a078b6223373e40efcfb387b4e38c2b Mon Sep 17 00:00:00 2001 From: Mtalha Date: Mon, 5 Aug 2024 17:43:23 +0530 Subject: [PATCH] harbor clean up doc --- argocd-helm-charts/harbor/README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/argocd-helm-charts/harbor/README.md b/argocd-helm-charts/harbor/README.md index 55768bc60..abeb25e17 100644 --- a/argocd-helm-charts/harbor/README.md +++ b/argocd-helm-charts/harbor/README.md @@ -155,3 +155,32 @@ After running this command you would be able to get a list of all the Harbor use This issue generally persists because of bad caches that leads to troubles. In order to fix this issue you simply need to delete all the existing Harbor deployment and statefulsets and resync them using Argo CD that will lead to a complete clean-up of all the previous session cache and will help you get rid of this issue. +## Clean Up of Harbour + +When you delete images from Harbor, the space isn't automatically reclaimed. To free up space, you need to perform garbage collection, which removes unreferenced blobs from the file system. + +**Note**: You need admin privilages for running Garbage Collection. + +### Running Garbage Collection + +1. **Log** in: Access the Harbor interface with a system administrator account. +2. **Navigate**: Go to `Administration` > `Garbage Collection` > `Garbage Collection` tab. +3. **Options**: + - To remove untagged artifacts, check the `Delete Untagged Artifacts` box. + - To start garbage collection, click `GC Now`. + +**Note**: During garbage collection, Harbor enters read-only mode, preventing any modifications to the registry. The `GC Now` button is limited to being used once per minute to prevent frequent triggering. + +### Scheduling Garbage Collection + +1. **Navigate**: Go to `Administration` > `Garbage Collection` > `Garbage Collection` tab. +2. **Schedule**: Click Edit and choose the frequency from the drop-down menu: + - `None`: No scheduled garbage collection. + - `Hourly`: Every hour at the beginning. + - `Daily`: Every day at midnight. + - `Weekly`: Every Saturday at midnight. + - `Custom`: Set a custom schedule using a cron job. +3. **Options**: To remove untagged artifacts, check the Delete Untagged Artifacts box. +4. **Save**: Click `Save`. + +For more Detailed information you can also checkout - [Harbor Doc](https://goharbor.io/docs/2.0.0/administration/garbage-collection/) \ No newline at end of file