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/3695-pod-resources-for-dra/README.md
+42-5Lines changed: 42 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,11 +94,20 @@ This API is read-only, which removes a large class of risks. The aspects that we
94
94
95
95
### Proposed API
96
96
97
-
98
-
Our proposal is to extend the existing PodResources gRPC service of the Kubelet with a repeated DynamicResource field in the ContainerResources message. This new field will contain information about the DRA resource class, the DRA resource claim and a list of CDI Devices allocated by a DRA driver.
99
-
Additionally, we propose adding a Get method to the existing gRPC service to allow querying specific pods for their allocated resources.
100
-
101
-
The extended interface is shown in proto below:
97
+
Our proposal is to extend the existing PodResources gRPC service of the Kubelet
98
+
with a repeated `DynamicResource` field in the ContainerResources message. This
99
+
new field will contain information about the DRA resource class, the DRA
100
+
resource claim, and a list of CDI Devices allocated by a DRA driver.
101
+
Additionally, we propose adding a `Get()` method to the existing gRPC service
102
+
to allow querying specific pods for their allocated resources.
103
+
104
+
**Note:** The new `Get()` call is a strict subset of the `List()` call (which
105
+
returns the list of PodResources for *all* pods acrosss *all* namespaces in the
106
+
cluster). That is, it allows one to specify a specific pod and namespace to
107
+
retrieve PodResources from, rather than having to query all of them all at
108
+
once.
109
+
110
+
The full PodResources API (including our proposed extensions) can be seen below:
102
111
```protobuf
103
112
// PodResourcesLister is a service provided by the kubelet that provides information about the
104
113
// node resources consumed by pods and containers on the node
0 commit comments