Skip to content

When should I use a storage class vs a persistent volume? #590

Answered by andyzhangx
yrro asked this question in Q&A
Discussion options

You must be logged in to vote

@yrro with storage class, the driver could create a subDir dynamically, and if you want to create dozens of PVCs(e.g. statefulset), using storage class is the easier way, while if you only want to create one pvc and don't need to create a subDir(e.g. bring your own sub dir), then using pv also works.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yrro
Comment options

Answer selected by andyzhangx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants