Skip to content

Commit 6337acd

Browse files
committed
[zh] Resync page device-plugins
1 parent 84179a7 commit 6337acd

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

content/zh-cn/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,10 @@ spec:
141141
The general workflow of a device plugin includes the following steps:
142142
143143
1. Initialization. During this phase, the device plugin performs vendor-specific
144-
initialization and setup to make sure the devices are in a ready state.
144+
initialization and setup to make sure the devices are in a ready state.
145145
146146
1. The plugin starts a gRPC service, with a Unix socket under the host path
147-
`/var/lib/kubelet/device-plugins/`, that implements the following interfaces:
147+
`/var/lib/kubelet/device-plugins/`, that implements the following interfaces:
148148
-->
149149
## 设备插件的实现 {#device-plugin-implementation}
150150

@@ -348,7 +348,7 @@ of the device allocations during the upgrade.
348348
采用该方法将确保升级期间设备分配的连续运行。
349349

350350
<!--
351-
## Monitoring Device Plugin Resources
351+
## Monitoring device plugin resources
352352
-->
353353
## 监控设备插件资源 {#monitoring-device-plugin-resources}
354354

@@ -375,14 +375,17 @@ for these devices:
375375
kubelet 提供了 gRPC 服务来使得正在使用中的设备被发现,并且还为这些设备提供了元数据:
376376

377377
```gRPC
378-
// PodResourcesLister 是一个由 kubelet 提供的服务,用来提供供节点上
378+
// PodResourcesLister 是一个由 kubelet 提供的服务,用来提供供节点上
379379
// Pod 和容器使用的节点资源的信息
380380
service PodResourcesLister {
381381
rpc List(ListPodResourcesRequest) returns (ListPodResourcesResponse) {}
382382
rpc GetAllocatableResources(AllocatableResourcesRequest) returns (AllocatableResourcesResponse) {}
383383
}
384384
```
385385

386+
<!--
387+
### `List` gRPC endpoint {#grpc-endpoint-list}
388+
-->
386389
### `List` gRPC 端点 {#grpc-endpoint-list}
387390

388391
<!--
@@ -522,7 +525,7 @@ Preceding Kubernetes v1.23, to enable this feature `kubelet` must be started wit
522525

523526
<!--
524527
`ContainerDevices` do expose the topology information declaring to which NUMA cells the device is
525-
affine. The NUMA cells are identified using a opaque integer ID, which value is consistent to
528+
affine. The NUMA cells are identified using a opaque integer ID, which value is consistent to
526529
what device plugins report
527530
[when they register themselves to the kubelet](/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins/#device-plugin-integration-with-the-topology-manager).
528531
-->
@@ -535,7 +538,7 @@ NUMA 单元通过一个整数 ID 来标识,其取值与设备插件所报告
535538
The gRPC service is served over a unix socket at `/var/lib/kubelet/pod-resources/kubelet.sock`.
536539
Monitoring agents for device plugin resources can be deployed as a daemon, or as a DaemonSet.
537540
The canonical directory `/var/lib/kubelet/pod-resources` requires privileged access, so monitoring
538-
agents must run in a privileged security context. If a device monitoring agent is running as a
541+
agents must run in a privileged security context. If a device monitoring agent is running as a
539542
DaemonSet, `/var/lib/kubelet/pod-resources` must be mounted as a
540543
{{< glossary_tooltip term_id="volume" >}} in the device monitoring agent's
541544
[PodSpec](/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#podspec-v1-core).
@@ -591,7 +594,7 @@ resource assignment decisions.
591594
`TopologyInfo` supports setting a `nodes` field to either `nil` or a list of NUMA nodes. This
592595
allows the Device Plugin to advertise a device that spans multiple NUMA nodes.
593596
594-
Setting `TopologyInfo` to `nil` or providing an empty list of NUMA nodes for a given device
597+
Setting `TopologyInfo` to `nil` or providing an empty list of NUMA nodes for a given device
595598
indicates that the Device Plugin does not have a NUMA affinity preference for that device.
596599
597600
An example `TopologyInfo` struct populated for a device by a Device Plugin:

0 commit comments

Comments
 (0)