Menu

📰
0

Reddit - Please wait for verification

Kubernetes·/u/VerifiablyMrWonka·2 days ago
#lF1HEnvg
Reading 0:00
15s threshold

I'm trying to run a service that will fill a provided filesystem with cache and then use it's own space management to ensure that there's always enough room i.e. it's an LRU cache. If I mount an emptyDir it gives the container the entire remaining ephemeral space - the rest of the disk. If I set a sizeLimit on the emptyDir it will blindly fill it and then k8s will evict the container and recreate (though for some reason it doesn't delete it). This is not what I want. What options do I have to mount a volume for my container that is represented within the container as a fixed size space? For example, I should be able to run `df -h` and see the mounts size and current usage. submitted by /u/VerifiablyMrWonka [link] [comments]

Read More