## Example output 

resourcequota "test" created 

This example limits the listed resources to the hard limit in each project in the cluster. 

## 4.1.6.2. Setting resource quota for extended resources 

2. Verify that the quota was created: 

$ oc describe quota test 

## Example output 

Name: test Namespace: quota Resource Used Hard -------- ---- ---- count/deployments.extensions 0 2 count/pods 0 3 count/replicasets.extensions 0 4 count/secrets 0 4 

Overcommitment of resources is not allowed for extended resources, so you must specify requests  and limits  for the same extended resource in a quota. Currently, only quota items with the prefix requests. is allowed for extended resources. The following is an example scenario of how to set resource quota for the GPU resource nvidia.com/gpu . 

## Procedure 

1. Determine how many GPUs are available on a node in your cluster. For example: 

# oc describe node ip-172-31-27-209.us-west-2.compute.internal | egrep 'Capacity|Allocatable|gpu' 

## Example output 

openshift.com/gpu-accelerator=true Capacity:  nvidia.com/gpu: 2 Allocatable:  nvidia.com/gpu: 2 nvidia.com/gpu 0 0 

In this example, 2 GPUs are available. 

2. Set a quota in the namespace nvidia . In this example, the quota is 1 : 

# cat gpu-quota.yaml 

## Example output 

