Skip to content

Image reflector controller uses a lot of ephemeral storage. #748

Open
@ilya-korol

Description

@ilya-korol

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions