Skip to content

Commit

Permalink
add default limits and quotas for NVIDIA GPUs
Browse files Browse the repository at this point in the history
By default a user should get 0 GPUs until they request one via
coldfront/openshift-acct-mgt.
  • Loading branch information
jtriley committed Nov 8, 2023
1 parent 1518665 commit 31efe83
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions k8s/base/limits.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
"type": "Container",
"default": {
"cpu": "2",
"memory": "1024Mi"
"memory": "1024Mi",
"nvidia.com/gpu": "0"
},
"defaultRequest": {
"cpu": "1",
"memory": "512Mi"
"memory": "512Mi",
"nvidia.com/gpu": "0"
}
}
]
1 change: 1 addition & 0 deletions k8s/base/quotas.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
":requests.storage": { "base": 2, "coefficient": 0, "units": "Gi" },
":limits.storage": { "base": 2, "coefficient": 0, "units": "Gi" },
":requests.ephemeral-storage": { "base": 2, "coefficient": 8, "units": "Gi" },
":requests.nvidia.com/gpu": { "base": 0, "coefficient": 0 },
":limits.ephemeral-storage": { "base": 2, "coefficient": 8, "units": "Gi" },
":persistentvolumeclaims": { "base": 2, "coefficient": 0 },
":replicationcontrollers": { "base": 2, "coefficient": 0 },
Expand Down

0 comments on commit 31efe83

Please sign in to comment.