Description
Hi, I'm using the Image Reflector Controller, which uses BadgerDB for storage. Over time, the controller creates a large number of 0000*.vlog files in the /data/ volume. Eventually, the storage gets full, leading to Kubernetes evicting the pod.
Tried setting --storage-value-log-file-size=2gb to reduce the number of vlog files and there was no effect.
I can see that many vlog files contain the same key-value pairs with minimal differences, because they all start with the same image name and its tags. It’s worth mentioning that we have a lot of images in ecr.
There is no available configuration options to restrict either the total number of files or the maximum storage size used by Badger.
Is there a way to configure automatic cleanup or GC to prevent unbounded storage growth?
Are there any recommended best practices for managing storage in this use case?
Image Reflector Controller version: v0.31.2
Would appreciate any insights on how to resolve this issue. Thanks!