PodSchedulingContext v1alpha2

PodSchedulingContext 对象保存调度使用“WaitForFirstConsumer”分配模式的 ResourceClaims 的 Pod 所需的信息。

apiVersion: resource.k8s.io/v1alpha2

import "k8s.io/api/resource/v1alpha2"

PodSchedulingContext

PodSchedulingContext 对象保存调度使用“WaitForFirstConsumer”分配模式的 ResourceClaims 的 Pod 所需的信息。

这是一个 alpha 类型,需要启用 DynamicResourceAllocation 功能网关。


PodSchedulingContextSpec

PodSchedulingContextSpec 描述了 Pod 资源的需要位置。


  • potentialNodes ([]string)

    集合:合并期间将保留唯一值

    PotentialNodes 列出了 Pod 可能能够运行的节点。

    此字段的大小限制为 128。这对于许多集群来说已经足够大了。较大的集群可能需要更多尝试才能找到适合所有待处理资源的节点。这在将来可能会增加,但不会减少。

  • selectedNode (string)

    SelectedNode 是要尝试为 Pod 引用并使用“WaitForFirstConsumer”分配的 ResourceClaims 分配资源的节点。

PodSchedulingContextStatus

PodSchedulingContextStatus 描述了 Pod 资源的分配位置。


  • resourceClaims ([]ResourceClaimSchedulingStatus)

    映射:合并期间将保留键名上的唯一值

    ResourceClaims 描述了每个 pod.spec.resourceClaim 条目的资源可用性,其中相应的 ResourceClaim 使用“WaitForFirstConsumer”分配模式。

    ResourceClaimSchedulingStatus 包含有关使用“WaitForFirstConsumer”分配模式的特定 ResourceClaim 的信息。

    • resourceClaims.name (string)

      Name 与 pod.spec.resourceClaims[*].Name 字段匹配。

    • resourceClaims.unsuitableNodes ([]string)

      集合:合并期间将保留唯一值

      UnsuitableNodes 列出了 ResourceClaim 无法为其分配的节点。

      此字段的大小限制为 128,与 PodSchedulingSpec.PotentialNodes 相同。这在将来可能会增加,但不会减少。

PodSchedulingContextList

PodSchedulingContextList 是 Pod 调度对象的集合。


  • apiVersion: resource.k8s.io/v1alpha2

  • kind: PodSchedulingContextList

  • metadata (ListMeta)

    标准列表元数据

  • items ([]PodSchedulingContext), 必需

    Items 是 PodSchedulingContext 对象的列表。

操作


get 读取指定的 PodSchedulingContext

HTTP 请求

GET /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}

参数

  • name (在路径中): string, 必需

    PodSchedulingContext 的名称

  • namespace (在路径中): string, 必需

    命名空间

  • pretty (在查询中): string

    漂亮

响应

200 (PodSchedulingContext): OK

401: 未经授权

get 读取指定 PodSchedulingContext 的状态

HTTP 请求

GET /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}/status

参数

  • name (在路径中): string, 必需

    PodSchedulingContext 的名称

  • namespace (在路径中): string, 必需

    命名空间

  • pretty (在查询中): string

    漂亮

响应

200 (PodSchedulingContext): OK

401: 未经授权

list 列出或观察 PodSchedulingContext 类型的对象

HTTP 请求

GET /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts

参数

响应

200 (PodSchedulingContextList): OK

401: 未经授权

list 列出或观察 PodSchedulingContext 类型的对象

HTTP 请求

GET /apis/resource.k8s.io/v1alpha2/podschedulingcontexts

参数

响应

200 (PodSchedulingContextList): OK

401: 未经授权

create 创建 PodSchedulingContext

HTTP 请求

POST /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts

参数

响应

200 (PodSchedulingContext): OK

201 (PodSchedulingContext): 已创建

202 (PodSchedulingContext): 已接受

401: 未经授权

update 替换指定的 PodSchedulingContext

HTTP 请求

PUT /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}

参数

响应

200 (PodSchedulingContext): OK

201 (PodSchedulingContext): 已创建

401: 未经授权

update 替换指定 PodSchedulingContext 的状态

HTTP 请求

PUT /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}/status

参数

响应

200 (PodSchedulingContext): OK

201 (PodSchedulingContext): 已创建

401: 未经授权

patch 部分更新指定的 PodSchedulingContext

HTTP 请求

PATCH /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}

参数

  • name (在路径中): string, 必需

    PodSchedulingContext 的名称

  • namespace (在路径中): string, 必需

    命名空间

  • body: Patch, 必需

  • dryRun (在查询中): string

    dryRun

  • fieldManager (在查询中): string

    fieldManager

  • fieldValidation (在查询中): string

    fieldValidation

  • force (在查询中): boolean

    强制

  • pretty (在查询中): string

    漂亮

响应

200 (PodSchedulingContext): OK

201 (PodSchedulingContext): 已创建

401: 未经授权

patch 部分更新指定 PodSchedulingContext 的状态

HTTP 请求

PATCH /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}/status

参数

  • name (在路径中): string, 必需

    PodSchedulingContext 的名称

  • namespace (在路径中): string, 必需

    命名空间

  • body: Patch, 必需

  • dryRun (在查询中): string

    dryRun

  • fieldManager (在查询中): string

    fieldManager

  • fieldValidation (在查询中): string

    fieldValidation

  • force (在查询中): boolean

    强制

  • pretty (在查询中): string

    漂亮

响应

200 (PodSchedulingContext): OK

201 (PodSchedulingContext): 已创建

401: 未经授权

delete 删除 PodSchedulingContext

HTTP 请求

DELETE /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}

参数

响应

200 (PodSchedulingContext): OK

202 (PodSchedulingContext): 已接受

401: 未经授权

deletecollection 删除 PodSchedulingContext 的集合

HTTP 请求

DELETE /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts

参数

响应

200 (Status): OK

401: 未经授权

此页面是自动生成的。

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

上次修改时间:2023 年 4 月 3 日上午 8:22 PST: API Ref 多页面 v1.27 (7b39e9a9ec)