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..1b23f65ee8 --- /dev/null +++ b/content/zh/docs/reference/kubernetes-api/cluster-resources/binding-v1.md @@ -0,0 +1,222 @@ +--- +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 版本弃用,请使用 Pod 的 binding 子资源。 +
+ +- **apiVersion**: v1 + + +- **kind**: Binding + + +- **metadata** (}}">ObjectMeta) + + 标准对象的元数据, 更多信息: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + + +- **target** (}}">ObjectReference), 必需 + + 要绑定到标准对象的目标对象。 + +## 操作 {#operations} + +
+ + +### `create` 创建一个 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