Merge pull request #32519 from howieyuen/ref_api_common_resource_field_selector
[zh]translate content/docs/reference/kubernetes-api/common-definition…
This commit is contained in:
+62
@@ -0,0 +1,62 @@
|
|||||||
|
---
|
||||||
|
api_metadata:
|
||||||
|
apiVersion: ""
|
||||||
|
import: "k8s.io/api/core/v1"
|
||||||
|
kind: "ResourceFieldSelector"
|
||||||
|
content_type: "api_reference"
|
||||||
|
description: "ResourceFieldSelector 表示容器资源(CPU,内存)及其输出格式。"
|
||||||
|
title: "ResourceFieldSelector"
|
||||||
|
weight: 11
|
||||||
|
auto_generated: true
|
||||||
|
---
|
||||||
|
|
||||||
|
<!--
|
||||||
|
api_metadata:
|
||||||
|
apiVersion: ""
|
||||||
|
import: "k8s.io/api/core/v1"
|
||||||
|
kind: "ResourceFieldSelector"
|
||||||
|
content_type: "api_reference"
|
||||||
|
description: "ResourceFieldSelector represents container resources (cpu, memory) and their output format."
|
||||||
|
title: "ResourceFieldSelector"
|
||||||
|
weight: 11
|
||||||
|
auto_generated: true
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!--
|
||||||
|
The file is auto-generated from the Go source code of the component using a generic
|
||||||
|
[generator](https://github.com/kubernetes-sigs/reference-docs/). To learn how
|
||||||
|
to generate the reference documentation, please read
|
||||||
|
[Contributing to the reference documentation](/docs/contribute/generate-ref-docs/).
|
||||||
|
To update the reference content, please follow the
|
||||||
|
[Contributing upstream](/docs/contribute/generate-ref-docs/contribute-upstream/)
|
||||||
|
guide. You can file document formatting bugs against the
|
||||||
|
[reference-docs](https://github.com/kubernetes-sigs/reference-docs/) project.
|
||||||
|
-->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
`import "k8s.io/api/core/v1"`
|
||||||
|
|
||||||
|
|
||||||
|
<!-- ResourceFieldSelector represents container resources (cpu, memory) and their output format -->
|
||||||
|
ResourceFieldSelector 表示容器资源(CPU,内存)及其输出格式。
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
- **resource** (string), 必选
|
||||||
|
|
||||||
|
<!-- Required: resource to select -->
|
||||||
|
必选:选择的资源
|
||||||
|
|
||||||
|
- **containerName** (string)
|
||||||
|
|
||||||
|
<!-- Container name: required for volumes, optional for env vars -->
|
||||||
|
容器名称:对卷必选,对环境变量可选
|
||||||
|
|
||||||
|
- **divisor** (<a href="{{< ref "../common-definitions/quantity#Quantity" >}}">Quantity</a>)
|
||||||
|
|
||||||
|
<!-- Specifies the output format of the exposed resources, defaults to "1" -->
|
||||||
|
指定所曝光资源的输出格式,默认值为“1”
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user