-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
What feature you'd like to add:
I would like JuiceFSRuntime to support volumeClaimTemplates, similar to how StatefulSets in Kubernetes use volumeClaimTemplates to dynamically provision persistent storage volumes for each replica.
Why is this feature needed:
Currently, it is not possible to dynamically create and manage PVCs for each JuiceFSRuntime pod. Adding support for volumeClaimTemplates would enable more flexible and automated storage management, especially for use cases where each runtime requires its own persistent storage (e.g. scratch space, cache, or datasets that should not be shared). This feature can greatly improve scalability, manageability, and compliance with Kubernetes storage best practices.
Additional context:
Reference: StatefulSet volumeClaimTemplates documentation
This would help facilitate dynamic provisioning with various StorageClasses according to user workloads.
It would make JuiceFSRuntime better suited for cloud-native and multi-tenant environments.