Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Extend Persistent Volume Claims to select on labels #14908
We are currently evaluating using a large number of volumes with different characteristics for different apps. These volumes could as an example be ssd vs hd, different snapshot policies, different replication strategies etc. These volumes are then intended for different usage. Webserver vs Database
What I would like is to extend the claim to have a selector and then use that selector against the persistent volumes labels. This would be inline with how Services selects pods.
If this is an acceptable solution I would be happy to see if I can implement it.
@tobad357 Thanks for the suggestion.
Users definitely need better ways to select PVs. The approach we're currently implementing is additional "quality of service" annotations on a claim that are used by the various PV components (binder, provisioner, etc).
The goal is to allow easy customization of the components via config so that you have your snapshot policies, ssd v. hd volumes, etc.
referenced this issue
Nov 10, 2015
I think in the longer term we can do better than this, but I am not against
On Fri, Nov 6, 2015 at 9:10 AM, Brian Grant firstname.lastname@example.org