绑定
apiVersion: v1
import "k8s.io/api/core/v1"
绑定
绑定将一个对象连接到另一个对象;例如,一个 Pod 通过调度器绑定到一个节点。在 1.7 中已弃用,请改用 Pod 的绑定子资源。
apiVersion: v1
kind: Binding
metadata (ObjectMeta)
标准对象的元数据。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
target (ObjectReference), 必需
你想要绑定到标准对象的目标对象。
操作
create
创建一个 Binding
HTTP 请求
POST /api/v1/namespaces/{namespace}/bindings
参数
namespace (在路径中): 字符串, 必需
body: Binding, 必需
dryRun (在查询中): 字符串
fieldManager (在查询中): 字符串
fieldValidation (在查询中): 字符串
pretty (在查询中): 字符串
响应
200 (Binding): 成功
201 (Binding): 已创建
202 (Binding): 已接受
401: 未授权
create
创建 Pod 的绑定
HTTP 请求
POST /api/v1/namespaces/{namespace}/pods/{name}/binding
参数
name (在路径中): 字符串, 必需
Binding 的名称
namespace (在路径中): 字符串, 必需
body: Binding, 必需
dryRun (在查询中): 字符串
fieldManager (在查询中): 字符串
fieldValidation (在查询中): 字符串
pretty (在查询中): 字符串
响应
200 (Binding): 成功
201 (Binding): 已创建
202 (Binding): 已接受
401: 未授权
此页面是自动生成的。
如果您计划报告此页面的问题,请在您的问题描述中提及该页面是自动生成的。修复可能需要在 Kubernetes 项目的其他地方进行。