You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: keps/sig-node/2403-pod-resources-allocatable-resources/README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,6 +102,10 @@ The GRPC Service will expose an additional endpoint:
102
102
- 'GetAllocatableResources`, which returns a single AllocatableResourcesResponse, enabling monitor applications to query for the allocatable set of resources available on the node.
103
103
This endpoint will return error if the corresponding feature gate is disabled.
104
104
105
+
NOTE:
106
+
107
+
-`GetAllocatableResources` should only be used to evaluate [allocatable](https://kubernetes.io/docs/tasks/administer-cluster/reserve-compute-resources/#node-allocatable) resources on a node. If the goal is to evaluate free/unallocated resources it should be used in conjunction with the List() endpoint. The result obtained by `GetAllocatableResources` would remain the same unless the underlying resources exposed to kubelet change. This happens rarely but when it does (e.g. CPUs onlined/offlined, devices added/removed), client is expected to call `GetAlloctableResources` endpoint.
108
+
105
109
The extended interface is shown in proto below:
106
110
```protobuf
107
111
// PodResources is a service provided by the kubelet that provides information about the
@@ -165,6 +169,8 @@ message ContainerDevices {
165
169
The implementation PR adds a suite of E2E tests which cover both the existing `List` endpoint already implemented in the podresources API and
166
170
the new proposed `GetAllocatableResources` API.
167
171
172
+
Add additional tests to prove that unhealthy devices are skipped as part of GetAllocatable and empty NUMA topology is not returned.
173
+
168
174
### Graduation Criteria
169
175
170
176
#### Alpha
@@ -174,6 +180,8 @@ the new proposed `GetAllocatableResources` API.
174
180
#### Alpha to Beta Graduation
175
181
-[X] The new API is consumed by other public software components (e.g. NFD).
176
182
-[X] No major bugs reported in the previous cycle.
183
+
-[X] Ensure that empty NUMA topology is handled properly.
184
+
-[X] Ensure that unhealthy devices are skipped in GetAllocatable.
177
185
178
186
#### Beta to G.A Graduation
179
187
-[X] Allowing time for feedback (1 year).
@@ -253,6 +261,7 @@ Feature only collects data when requests comes in, data is then garbage collecte
253
261
- 2021-02-02: KEP extracted from [previous iteration](https://github.com/kubernetes/enhancements/tree/master/keps/sig-node/2043-pod-resource-concrete-assigments)
0 commit comments