This commit is contained in:
ut003055
2022-05-23 10:30:46 +08:00
parent 8fe03cc9fd
commit 603dea2552
@@ -10,17 +10,6 @@ weight: 9
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.
-->
`apiVersion: v1`
`import "k8s.io/api/core/v1"`
@@ -30,7 +19,8 @@ guide. You can file document formatting bugs against the
<!--
Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead.
-->
Binding 将一个对象与另一个对象联系起来; 例如,一个 Pod 被调度程序绑定到一个节点。1.7 已弃用,请使用 Pod 的 Binding 子资源。
Binding 将一个对象与另一个对象联系起来; 例如,一个 Pod 被调度程序绑定到一个节点。
已在 1.7 版本弃用,请使用 Pod 的 binding 子资源。
<hr>
- **apiVersion**: v1
@@ -42,18 +32,22 @@ Binding 将一个对象与另一个对象联系起来; 例如,一个 Pod 被
- **metadata** (<a href="{{< ref "../common-definitions/object-meta#ObjectMeta" >}}">ObjectMeta</a>)
<!--
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
-->
标准对象的元数据, 更多信息: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
<!--
- **target** (<a href="{{< ref "../common-definitions/object-reference#ObjectReference" >}}">ObjectReference</a>), required
The target object that you want to bind to the standard object.
-->
标准对象的元数据, 更多信息: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
- **target** (<a href="{{< ref "../common-definitions/object-reference#ObjectReference" >}}">ObjectReference</a>), 必需
- **target** (<a href="{{< ref "../common-definitions/object-reference#ObjectReference" >}}">ObjectReference</a>) 必需
要绑定到标准对象的目标对象。
<!--
## Operations {#Operations}
-->
## 操作 {#operations}
<hr>
@@ -82,12 +76,12 @@ POST /api/v1/namespaces/{namespace}/bindings
- **body**: <a href="{{< ref "../cluster-resources/binding-v1#Binding" >}}">Binding</a>, required
-->
- **namespace** (**路径**): string, 必需
- **namespace** (**路径参数**): string, 必需
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
- **body**: <a href="{{< ref "../cluster-resources/binding-v1#Binding" >}}">Binding</a>, 必需
- **body**: <a href="{{< ref "../cluster-resources/binding-v1#Binding" >}}">Binding</a>, 必需
<!--
- **dryRun** (*in query*): string
@@ -173,15 +167,15 @@ POST /api/v1/namespaces/{namespace}/pods/{name}/binding
-->
#### 参数
- **name** (*路径*): string, 必需
- **name** (**路径参数**): string, 必需
Binding 的名称
- **namespace** (*路径*): string, 必需
- **namespace** (**路径参数**): string, 必需
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
- **body**: <a href="{{< ref "../cluster-resources/binding-v1#Binding" >}}">Binding</a>, 必需
- **body**: <a href="{{< ref "../cluster-resources/binding-v1#Binding" >}}">Binding</a>, 必需
<!--
- **dryRun** (*in query*): string