绑定
apiVersion: v1
import "k8s.io/api/core/v1"
绑定
绑定将一个对象绑定到另一个对象;例如,一个 Pod 由调度程序绑定到一个节点。在 1.7 中弃用,请改用 Pod 的 bindings 子资源。
apiVersion: v1
kind: Binding
metadata (ObjectMeta)
标准对象的元数据。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
target (ObjectReference), required
要绑定到标准对象的目標对象。
操作
create
创建 Binding
HTTP 请求
POST /api/v1/namespaces/{namespace}/bindings
参数
namespace (在路径中): string, required
body: Binding, required
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
pretty (在查询中): string
响应
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
fieldManager (在查询中): string
fieldValidation (在查询中): string
pretty (在查询中): string
响应
200 (Binding): OK
201 (Binding): 已创建
202 (Binding): 已接受
401: 未经授权
此页面是自动生成的。
如果您打算报告有关此页面的问题,请在您的问题描述中提及该页面是自动生成的。修复可能需要在 Kubernetes 项目的其他地方进行。