PersistentVolume quotas can be disabled from inside a container #360
Labels
bug
Something isn't working
c/k8s
Kubernetes component
unfortunate
Things which we wouldn't implement in an ideal world.
Quotas on Filesystem volumes can simply be disabled from inside a container, by removing the project hierarchy attribute.
This means that quotas can easily be bypassed, though they are still effective against accidental excessive disk usage.
It looks like enabling user namespaces might fix this, because changing quota attributes is only allowed in the init user namespace:
https://elixir.bootlin.com/linux/v6.11.9/source/fs/ioctl.c#L608
Demo
Setup:
In the container:
After removing the P attribute, we have a lot more space.
The text was updated successfully, but these errors were encountered: