cancel
Showing results for 
Search instead for 
Did you mean: 
cjan
Mission Specialist
Mission Specialist
  • 1,120 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 

Labels (2)
0 Kudos
2 Replies
cjan
Mission Specialist
Mission Specialist
  • 1,100 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

Walid
Flight Engineer Flight Engineer
Flight Engineer
  • 1,095 Views

I was wondering if you can also use labels as selectors for storage

~ Walid - Red Hat Accelerator, DevOps Janitor
0 Kudos
Join the discussion
You must log in to join this conversation.