cjan

Mission Specialist
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2020
05:02 AM
- 1,822 Views
Restricting PVC for certain project to use specific storageclass
Hi all,
I'm looking for a solution for following problem.
I have two storageclass named ssdstorage and nonsssdstorage. I want PVC from certain projects to use ssdstroage and certain project to use nonssdstorage. Is there anyway we can restrict it?
Thanks
Shrijan
2 Replies
cjan

Mission Specialist
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2020
04:10 PM
- 1,802 Views
found solution to my problme. We can acheive it by placing quota for storageclass
<storage-class-name>.storageclass.storage.k8s.io/requests.storage
<storage-class-name>.storageclass.storage.k8s.io/persistentvolumeclaims
Ref: https://docs.openshift.com/container-platform/3.11/admin_guide/quota.html


Flight Engineer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2020
04:24 AM
- 1,797 Views
I was wondering if you can also use labels as selectors for storage
~ Walid - Red Hat Accelerator, DevOps Janitor
Join the discussion
You must log in to join this conversation.