content_image/854250.jpg
kind: ResourceQuota 

metadata: 

name: storage-consumption 

spec: 

hard: 

1 The total number of persistent volume claims in a project. 

persistentvolumeclaims: "10" 1 

requests.storage: "50Gi" 2 

gold.storageclass.storage.k8s.io/requests.storage: "10Gi" 3 

silver.storageclass.storage.k8s.io/requests.storage: "20Gi" 4 

silver.storageclass.storage.k8s.io/persistentvolumeclaims: "5" 5 

bronze.storageclass.storage.k8s.io/requests.storage: "0" 6 

bronze.storageclass.storage.k8s.io/persistentvolumeclaims: "0" 7 

2 Across all persistent volume claims in a project, the sum of storage requested cannot exceed this value. 

3 Across all persistent volume claims in a project, the sum of storage requested in the gold storage class cannot exceed this value. 

4 Across all persistent volume claims in a project, the sum of storage requested in the silver storage class cannot exceed this value. 

5 Across all persistent volume claims in a project, the total number of claims in the silver storage class cannot exceed this value. 

6 Across all persistent volume claims in a project, the sum of storage requested in the bronze storage class cannot exceed this value. When this value is set to 0 , the bronze storage class cannot request storage. 

7 Across all persistent volume claims in a project, the sum of storage requested in the bronze storage class cannot exceed this value. When this value is set to 0 , the bronze storage class cannot create claims. 

c. Create a project request template from the modified template.yaml  file in the openshift-config  namespace: 

If a project request template already exists within a cluster: 

$ oc create -f template.yaml -n openshift-config 

<img src='content_image/854250.jpg'>

By default, the template is called project-request . 

## NOTE 

To include the configuration as a kubectl.kubernetes.io/last-applied- configuration  annotation, add the --save-config  option to the oc create command. 

