Skip to content

Commit

Permalink
device plugins: add clarifications after review
Browse files Browse the repository at this point in the history
- fix the AllocatableResourcesResponse comment
- describe the NUMA ID and explain the meaning of the field.

Signed-off-by: Francesco Romani <[email protected]>
  • Loading branch information
ffromani committed Mar 29, 2021
1 parent d8a2177 commit dace2a2
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -243,14 +243,19 @@ GetAllocatableResources provides information on resources initially available on
It provides more information than kubelet exports to APIServer.

```gRPC
// AvailableResourcesResponses contains information about all the devices known by the kubelet
// AllocatableResourcesResponses contains informations about all the devices known by the kubelet
message AllocatableResourcesResponse {
repeated ContainerDevices devices = 1;
repeated int64 cpu_ids = 2;
}
```

`ContainerDevices` do expose the topology information declaring to which NUMA cells the device is affine.
The NUMA cells are identified using a opaque integer ID, which value is consistent to what device
plugins report [when they register themselves to the kubelet](https://kubernetes.io/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins/#device-plugin-integration-with-the-topology-manager).


The gRPC service is served over a unix socket at `/var/lib/kubelet/pod-resources/kubelet.sock`.
Monitoring agents for device plugin resources can be deployed as a daemon, or as a DaemonSet.
The canonical directory `/var/lib/kubelet/pod-resources` requires privileged access, so monitoring
Expand Down

0 comments on commit dace2a2

Please sign in to comment.