I can use the command
gitlab-ctl registry-garbage-collect to remove unused layers from the GitLab Registry. This works well for the regular Omnibus installation, an can be perfectly automated in a system cronjob.
As I am currently migrating from the Omnibus installation to the Helm chart, I am looking for another way to achieve scheduled cleanups of the registry. The
cron_jobs setting in the default values looked promising, but there isn’t any fitting cron job in the documentation.
How can I automate the Registry garbage collection with the Helm-based installation?