绑定

绑定将一个对象绑定到另一个对象;例如,一个 Pod 由调度程序绑定到一个节点。

apiVersion: v1

import "k8s.io/api/core/v1"

绑定

绑定将一个对象绑定到另一个对象;例如,一个 Pod 由调度程序绑定到一个节点。在 1.7 中弃用,请改用 Pod 的 bindings 子资源。


操作


create 创建 Binding

HTTP 请求

POST /api/v1/namespaces/{namespace}/bindings

参数

响应

200 (Binding): OK

201 (Binding): 已创建

202 (Binding): 已接受

401: 未经授权

create 创建 Pod 的绑定

HTTP 请求

POST /api/v1/namespaces/{namespace}/pods/{name}/binding

参数

  • name (在路径中): string, required

    绑定的名称

  • namespace (在路径中): string, required

    命名空间

  • body: Binding, required

  • dryRun (在查询中): string

    dryRun

  • fieldManager (在查询中): string

    fieldManager

  • fieldValidation (在查询中): string

    fieldValidation

  • pretty (在查询中): string

    pretty

响应

200 (Binding): OK

201 (Binding): 已创建

202 (Binding): 已接受

401: 未经授权

此页面是自动生成的。

如果您打算报告有关此页面的问题,请在您的问题描述中提及该页面是自动生成的。修复可能需要在 Kubernetes 项目的其他地方进行。

上次修改时间:2021 年 12 月 8 日下午 9:34 PST:kubernetes 1.23 的参考文档 (02445930e5)