Highlighted
Mission Specialist
Mission Specialist
  • 80 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 

0 Kudos
2 Replies
Highlighted
Mission Specialist
Mission Specialist
  • 60 Views

Re: Restricting PVC for certain project to use specific storageclass

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

Reply
Loading...
Highlighted
Flight Engineer Flight Engineer
Flight Engineer
  • 55 Views

Re: Restricting PVC for certain project to use specific storageclass

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

~ Walid - the DevOps Janitor
0 Kudos
Reply
Loading...
Join the discussion
You must log in to join this conversation.