diff --git a/content/zh/docs/reference/kubernetes-api/cluster-resources/binding-v1.md b/content/zh/docs/reference/kubernetes-api/cluster-resources/binding-v1.md new file mode 100644 index 0000000000..a76cc3071a --- /dev/null +++ b/content/zh/docs/reference/kubernetes-api/cluster-resources/binding-v1.md @@ -0,0 +1,228 @@ +--- +api_metadata: + apiVersion: "v1" + import: "k8s.io/api/core/v1" + kind: "Binding" +content_type: "api_reference" +description: "Binding 即将一个对象与另一个对象联系起来;例如,一个 pod 被调度程序绑定到一个节点。" +title: "Binding" +weight: 9 +auto_generated: true +--- + + + +`apiVersion: v1` + +`import "k8s.io/api/core/v1"` + + +## Binding {#Binding} + +Binding 即将一个对象与另一个对象联系起来;例如,一个 pod 被调度程序绑定到一个节点。1.7已弃用,请使用 pods 的 bindings 子资源。 +
+ +- **apiVersion**: v1 + + +- **kind**: Binding + + +- **metadata** (}}">ObjectMeta) + + 标准对象的元数据 更多信息: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + +- **target** (}}">ObjectReference), 必需的 + + 要绑定到标准对象的目标对象。 + +## Operations {#Operations} + +
+ + +### `创建` 创建一个 Binding + +#### HTTP 请求 + +POST /api/v1/namespaces/{namespace}/bindings + +#### 参数 + + +- **namespace** (**在路径上**): string, 必需的 + + }}">namespace + + +- **body**: }}">Binding, 必需的 + + +- **dryRun** (**查询字符串**): string + + }}">dryRun + + +- **fieldManager** (**查询字符串**): string + + }}">fieldManager + + + + +- **fieldValidation** (**查询字符串**): string + + }}">fieldValidation + + +- **pretty** (**查询字符串**): string + + }}">pretty + + +#### 响应 + +200 (}}">Binding): OK + +201 (}}">Binding): Created + +202 (}}">Binding): Accepted + +401: Unauthorized + + +### `create` 创建Pod的绑定 + +#### HTTP 请求 + +POST /api/v1/namespaces/{namespace}/pods/{name}/binding + +#### 参数 + +- **name** (*在路径内*): string, 必需的 + + Binding 的名称 + +- **namespace** (*在路径内*): string, 必需的 + + }}">namespace + +- **body**: }}">Binding, 必需的 + + +- **dryRun** (**查询字符串**): string + + }}">dryRun + + +- **fieldManager** (**查询字符串**): string + + }}">fieldManager + +- **fieldValidation** (**查询字符串**): string + + }}">fieldValidation + +- **pretty** (**查询字符串**): string + + }}">pretty + +#### 响应 + +200 (}}">Binding): OK + +201 (}}">Binding): Created + +202 (}}">Binding): Accepted + +401: Unauthorized