Skip to content

Commit 6fdbf84

Browse files
authored
Merge pull request #100 from OCP-on-NERC/gpu-limits-and-quotas
add default limits and quotas for NVIDIA GPUs
2 parents 1518665 + 31efe83 commit 6fdbf84

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

k8s/base/limits.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
"type": "Container",
44
"default": {
55
"cpu": "2",
6-
"memory": "1024Mi"
6+
"memory": "1024Mi",
7+
"nvidia.com/gpu": "0"
78
},
89
"defaultRequest": {
910
"cpu": "1",
10-
"memory": "512Mi"
11+
"memory": "512Mi",
12+
"nvidia.com/gpu": "0"
1113
}
1214
}
1315
]

k8s/base/quotas.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
":requests.storage": { "base": 2, "coefficient": 0, "units": "Gi" },
77
":limits.storage": { "base": 2, "coefficient": 0, "units": "Gi" },
88
":requests.ephemeral-storage": { "base": 2, "coefficient": 8, "units": "Gi" },
9+
":requests.nvidia.com/gpu": { "base": 0, "coefficient": 0 },
910
":limits.ephemeral-storage": { "base": 2, "coefficient": 8, "units": "Gi" },
1011
":persistentvolumeclaims": { "base": 2, "coefficient": 0 },
1112
":replicationcontrollers": { "base": 2, "coefficient": 0 },

0 commit comments

Comments
 (0)