Binding
apiVersion: v1
import "k8s.io/api/core/v1"
Binding
Binding 将一个对象与另一个对象绑定在一起;例如,调度程序将一个 Pod 绑定到一个节点。
-
apiVersion: v1
-
kind: Binding
-
metadata (ObjectMeta)
标准的对象元数据。更多信息: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
-
target (ObjectReference), required
想要绑定到标准对象的目标对象。
操作
create 创建 Binding
POST /api/v1/namespaces/{namespace}/bindings
参数
-
dryRun (查询参数): string
-
fieldManager (查询参数): string
-
fieldValidation (查询参数): string
-
pretty (查询参数): string
响应
200 (Binding): OK
201 (Binding): Created
202 (Binding): Accepted
401: Unauthorized
create 创建 Pod 的 binding
POST /api/v1/namespaces/{namespace}/pods/{name}/binding
参数
-
name (路径参数): string,必需
CronJob 的名称
-
namespace (路径参数): string,必需
- body: Binding,必需
-
dryRun (查询参数): string
-
fieldManager (查询参数): string
-
fieldValidation (查询参数): string
-
pretty (查询参数): string
响应
200 (Binding): OK
201 (Binding): Created
202 (Binding): Accepted
401: Unauthorized
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
该页面是自动生成的。
如果你打算报告此页面的问题,请在问题描述中提及该页面是自动生成的。修复可能需要在 Kubernetes 项目的其他地方进行。