PodSchedulingContext v1alpha2
apiVersion: resource.k8s.io/v1alpha2
import "k8s.io/api/resource/v1alpha2"
PodSchedulingContext
PodSchedulingContext 对象包含调度使用“WaitForFirstConsumer”分配模式的 ResourceClaims 的 Pod 所需的信息。
这是一个 alpha 类型,需要启用 DynamicResourceAllocation 功能门。
apiVersion: resource.k8s.io/v1alpha2
kind: PodSchedulingContext
metadata (ObjectMeta)
标准对象元数据
spec (PodSchedulingContextSpec), required
Spec 描述了 Pod 所需资源的位置。
status (PodSchedulingContextStatus)
Status 描述了 Pod 可以分配资源的位置。
PodSchedulingContextSpec
PodSchedulingContextSpec 描述了 Pod 所需资源的位置。
potentialNodes ([]string)
Set: 合并期间将保留唯一值
PotentialNodes 列出了 Pod 可能能够运行的节点。
此字段的大小限制为 128。这对许多集群来说足够大了。较大的集群可能需要更多尝试才能找到适合所有待处理资源的节点。这在将来可能会增加,但不会减少。
selectedNode (string)
SelectedNode 是要尝试为 Pod 引用的 ResourceClaims(使用“WaitForFirstConsumer”分配)分配资源的节点。
PodSchedulingContextStatus
PodSchedulingContextStatus 描述了 Pod 可以分配资源的位置。
resourceClaims ([]ResourceClaimSchedulingStatus)
Map: 合并期间将保留键名称上的唯一值
ResourceClaims 描述了每个 pod.spec.resourceClaim 条目的资源可用性,其中相应的 ResourceClaim 使用“WaitForFirstConsumer”分配模式。
ResourceClaimSchedulingStatus 包含有关使用“WaitForFirstConsumer”分配模式的特定 ResourceClaim 的信息。
resourceClaims.name (string)
Name 与 pod.spec.resourceClaims[*].Name 字段匹配。
resourceClaims.unsuitableNodes ([]string)
Set: 合并期间将保留唯一值
UnsuitableNodes 列出了 ResourceClaim 无法为其分配的节点。
此字段的大小限制为 128,与 PodSchedulingSpec.PotentialNodes 相同。这在将来可能会增加,但不会减少。
PodSchedulingContextList
PodSchedulingContextList 是 Pod 调度对象的集合。
apiVersion: resource.k8s.io/v1alpha2
kind: PodSchedulingContextList
metadata (ListMeta)
标准列表元数据
items ([]PodSchedulingContext), required
Items 是 PodSchedulingContext 对象的列表。
操作
get
读取指定的 PodSchedulingContext
HTTP 请求
GET /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}
参数
name (in path): string, required
PodSchedulingContext 的名称
namespace (in path): string, required
pretty (in query): string
响应
200 (PodSchedulingContext): OK
401: Unauthorized
get
读取指定 PodSchedulingContext 的状态
HTTP 请求
GET /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}/status
参数
name (in path): string, required
PodSchedulingContext 的名称
namespace (in path): string, required
pretty (in query): string
响应
200 (PodSchedulingContext): OK
401: Unauthorized
list
列出或监视 PodSchedulingContext 类型的对象
HTTP 请求
GET /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts
参数
namespace (in path): string, required
allowWatchBookmarks (in query): boolean
continue (in query): string
fieldSelector (in query): string
labelSelector (in query): string
limit (in query): integer
pretty (in query): string
resourceVersion (in query): string
resourceVersionMatch (in query): string
sendInitialEvents (in query): boolean
timeoutSeconds (in query): integer
watch (in query): boolean
响应
200 (PodSchedulingContextList): OK
401: Unauthorized
list
列出或监视 PodSchedulingContext 类型的对象
HTTP 请求
GET /apis/resource.k8s.io/v1alpha2/podschedulingcontexts
参数
allowWatchBookmarks (in query): boolean
continue (in query): string
fieldSelector (in query): string
labelSelector (in query): string
limit (in query): integer
pretty (in query): string
resourceVersion (in query): string
resourceVersionMatch (in query): string
sendInitialEvents (in query): boolean
timeoutSeconds (in query): integer
watch (in query): boolean
响应
200 (PodSchedulingContextList): OK
401: Unauthorized
create
创建一个 PodSchedulingContext
HTTP 请求
POST /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts
参数
namespace (in path): string, required
body: PodSchedulingContext, required
dryRun (in query): string
fieldManager (in query): string
fieldValidation (in query): string
pretty (in query): string
响应
200 (PodSchedulingContext): OK
201 (PodSchedulingContext): Created
202 (PodSchedulingContext): Accepted
401: Unauthorized
update
替换指定的 PodSchedulingContext
HTTP 请求
PUT /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}
参数
name (in path): string, required
PodSchedulingContext 的名称
namespace (in path): string, required
body: PodSchedulingContext, required
dryRun (in query): string
fieldManager (in query): string
fieldValidation (in query): string
pretty (in query): string
响应
200 (PodSchedulingContext): OK
201 (PodSchedulingContext): Created
401: Unauthorized
update
替换指定 PodSchedulingContext 的状态
HTTP 请求
PUT /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}/status
参数
name (in path): string, required
PodSchedulingContext 的名称
namespace (in path): string, required
body: PodSchedulingContext, required
dryRun (in query): string
fieldManager (in query): string
fieldValidation (in query): string
pretty (in query): string
响应
200 (PodSchedulingContext): OK
201 (PodSchedulingContext): Created
401: Unauthorized
patch
部分更新指定的 PodSchedulingContext
HTTP 请求
PATCH /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}
参数
name (in path): string, required
PodSchedulingContext 的名称
namespace (in path): string, required
body: Patch, required
dryRun (in query): string
fieldManager (in query): string
fieldValidation (in query): string
force (in query): boolean
pretty (in query): string
响应
200 (PodSchedulingContext): OK
201 (PodSchedulingContext): Created
401: Unauthorized
patch
部分更新指定 PodSchedulingContext 的状态
HTTP 请求
PATCH /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}/status
参数
name (in path): string, required
PodSchedulingContext 的名称
namespace (in path): string, required
body: Patch, required
dryRun (in query): string
fieldManager (in query): string
fieldValidation (in query): string
force (in query): boolean
pretty (in query): string
响应
200 (PodSchedulingContext): OK
201 (PodSchedulingContext): Created
401: Unauthorized
delete
删除一个 PodSchedulingContext
HTTP 请求
DELETE /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}
参数
name (in path): string, required
PodSchedulingContext 的名称
namespace (in path): string, required
body: DeleteOptions
dryRun (in query): string
gracePeriodSeconds (in query): integer
pretty (in query): string
propagationPolicy (in query): string
响应
200 (PodSchedulingContext): OK
202 (PodSchedulingContext): Accepted
401: Unauthorized
deletecollection
删除 PodSchedulingContext 的集合
HTTP 请求
DELETE /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts
参数
namespace (in path): string, required
body: DeleteOptions
continue (in query): string
dryRun (in query): string
fieldSelector (in query): string
gracePeriodSeconds (in query): integer
labelSelector (in query): string
limit (in query): integer
pretty (in query): string
propagationPolicy (in query): string
resourceVersion (in query): string
resourceVersionMatch (in query): string
sendInitialEvents (in query): boolean
timeoutSeconds (in query): integer
响应
200 (Status): OK
401: Unauthorized
此页面是自动生成的。
如果您打算报告此页面的问题,请在问题描述中提及该页面是自动生成的。修复可能需要在 Kubernetes 项目的其他地方进行。