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: content/zh/docs/concepts/extend-kubernetes/api-extension/apiserver-aggregation.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,12 +23,13 @@ The aggregation layer allows Kubernetes to be extended with additional APIs, bey
23
23
而不局限于 Kubernetes 核心 API 提供的功能。
24
24
25
25
<!--
26
-
The additional APIs can either be ready-made solutions such as [service-catalog](/docs/concepts/extend-kubernetes/service-catalog/), or APIs that you develop yourself.
26
+
The additional APIs can either be ready-made solutions such as a [metrics server](https://github.com/kubernetes-sigs/metrics-server), or APIs that you develop yourself.
27
27
28
28
The aggregation layer is different from [Custom Resources](/docs/concepts/extend-kubernetes/api-extension/custom-resources/), which are a way to make the {{< glossary_tooltip term_id="kube-apiserver" text="kube-apiserver" >}} recognise new kinds of object.
29
29
-->
30
-
这里的附加 API 可以是[服务目录](/zh/docs/concepts/extend-kubernetes/service-catalog/)
Copy file name to clipboardExpand all lines: content/zh/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins.md
+13-2Lines changed: 13 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -334,10 +334,12 @@ service PodResourcesLister {
334
334
<!--
335
335
The `List` endpoint provides information on resources of running pods, with details such as the
336
336
id of exclusively allocated CPUs, device id as it was reported by device plugins and id of
337
-
the NUMA node where these devices are allocated.
337
+
the NUMA node where these devices are allocated. Also, for NUMA-based machines, it contains
338
+
the information about memory and hugepages reserved for a container.
338
339
-->
339
340
这一 `List` 端点提供运行中 Pods 的资源信息,包括类似独占式分配的
340
341
CPU ID、设备插件所报告的设备 ID 以及这些设备分配所处的 NUMA 节点 ID。
342
+
此外,对于基于 NUMA 的机器,它还会包含为容器保留的内存和大页的信息。
341
343
342
344
```gRPC
343
345
// ListPodResourcesResponse 是 List 函数的响应
@@ -357,6 +359,14 @@ message ContainerResources {
357
359
string name = 1;
358
360
repeated ContainerDevices devices = 2;
359
361
repeated int64 cpu_ids = 3;
362
+
repeated ContainerMemory memory = 4;
363
+
}
364
+
365
+
// ContainerMemory 包含分配给容器的内存和大页信息
366
+
message ContainerMemory {
367
+
string memory_type = 1;
368
+
uint64 size = 2;
369
+
TopologyInfo topology = 3;
360
370
}
361
371
362
372
// Topology 描述资源的硬件拓扑结构
@@ -390,14 +400,15 @@ It provides more information than kubelet exports to APIServer.
390
400
message AllocatableResourcesResponse {
391
401
repeated ContainerDevices devices = 1;
392
402
repeated int64 cpu_ids = 2;
403
+
repeated ContainerMemory memory = 3;
393
404
}
394
405
395
406
```
396
407
397
408
<!--
398
409
`ContainerDevices` do expose the topology information declaring to which NUMA cells the device is affine.
399
410
The NUMA cells are identified using a opaque integer ID, which value is consistent to what device
400
-
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).
411
+
plugins report [when they register themselves to the kubelet](/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins/#device-plugin-integration-with-the-topology-manager).
* Read the {{< glossary_tooltip text="CNCF" term_id="cncf" >}} [Operator White Paper](https://github.com/cncf/tag-app-delivery/blob/eece8f7307f2970f46f100f51932db106db46968/operator-wg/whitepaper/Operator-WhitePaper_v1-0.md).
238
238
* Learn more about [Custom Resources](/docs/concepts/extend-kubernetes/api-extension/custom-resources/)
239
239
* Find ready-made operators on [OperatorHub.io](https://operatorhub.io/) to suit your use case
240
240
* [Publish](https://operatorhub.io/) your operator for other people to use
241
241
* Read [CoreOS' original article](https://web.archive.org/web/20170129131616/https://coreos.com/blog/introducing-operators.html) that introduced the Operator pattern (this is an archived version of the original article).
242
242
* Read an [article](https://cloud.google.com/blog/products/containers-kubernetes/best-practices-for-building-kubernetes-operators-and-stateful-apps) from Google Cloud about best practices for building Operators
0 commit comments