mittwald / kubernetes-secret-generator

Kubernetes controller for automatically generating and updating secrets
Apache License 2.0
329 stars 56 forks source link

Memory leak: memory usage slowly creeps upwards even if not doing anything #100

Open corneliusroemer opened 3 months ago

corneliusroemer commented 3 months ago

Describe the bug

The secret generator appears to have a memory leak of some sort. If I limit its max memory to 200MB it dies every once in a while, even if I'm not generating any secrets whatsoever.

Without limit, it grows to up to 800MB or more - it's unclear for what reason it needs so much memory.

To Reproduce

Install into empty cluster, observe memory usage with kubectl top

Expected behavior

Memory usage is consistently low and doesn't grow to 800MB

Environment: