metadata: name: compute-resources-time-bound spec: hard: pods: "2" 1 limits.cpu: "1" 2 limits.memory: "1Gi" 3 limits.ephemeral-storage: "1Gi" 4 scopes: - Terminating 5 

1 The total number of pods in a terminating state. 

2 Across all pods in a terminating state, the sum of CPU limits cannot exceed this value. 

3 Across all pods in a terminating state, the sum of memory limits cannot exceed this value. 

4 Across all pods in a terminating state, the sum of ephemeral storage limits cannot exceed this value. 

5 Restricts the quota to only matching pods where spec.activeDeadlineSeconds >=0 . For example, this quota would charge for build or deployer pods, but not long running pods like a web server or database. 

## storage-consumption.yaml 

apiVersion: v1 kind: ResourceQuota metadata: name: storage-consumption spec: hard: 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 

1 The total number of persistent volume claims in a project 

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. 

