PodSchedulingContext v1alpha3
apiVersion: resource.k8s.io/v1alpha3
import "k8s.io/api/resource/v1alpha3"
PodSchedulingContext
PodSchedulingContext 物件保存排程 Pod 所需的資訊,該 Pod 的 ResourceClaims 使用 "WaitForFirstConsumer" 分配模式。
這是一個 alpha 類型,需要啟用 DRAControlPlaneController 功能閘門。
apiVersion: resource.k8s.io/v1alpha3
kind: PodSchedulingContext
metadata (ObjectMeta)
標準物件 metadata
spec (PodSchedulingContextSpec), 必填
Spec 描述 Pod 所需資源的位置。
status (PodSchedulingContextStatus)
Status 描述 Pod 資源可以分配的位置。
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 包含關於一個特定的 ResourceClaim 的資訊,該 ResourceClaim 使用 "WaitForFirstConsumer" 分配模式。
resourceClaims.name (字串), 必填
名稱與 pod.spec.resourceClaims[*].Name 欄位匹配。
resourceClaims.unsuitableNodes ([]字串)
原子性:將在合併期間被取代
UnsuitableNodes 列出 ResourceClaim 無法分配的節點。
此欄位的大小限制為 128,與 PodSchedulingSpec.PotentialNodes 相同。未來可能會增加,但不會減少。
PodSchedulingContextList
PodSchedulingContextList 是 Pod 排程物件的集合。
apiVersion: resource.k8s.io/v1alpha3
種類: PodSchedulingContextList
metadata (ListMeta)
標準列表 metadata
items ([]PodSchedulingContext), 必填
Items 是 PodSchedulingContext 物件的列表。
操作
get
讀取指定的 PodSchedulingContext
HTTP 請求
GET /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/podschedulingcontexts/{name}
參數
回應
200 (PodSchedulingContext): OK
401: 未經授權
get
讀取指定 PodSchedulingContext 的狀態
HTTP 請求
GET /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/podschedulingcontexts/{name}/status
參數
回應
200 (PodSchedulingContext): OK
401: 未經授權
list
列出或監看 PodSchedulingContext 種類的物件
HTTP 請求
GET /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/podschedulingcontexts
參數
namespace (在路徑中): 字串, 必填
allowWatchBookmarks (在查詢中): 布林值
continue (在查詢中): 字串
fieldSelector (在查詢中): 字串
labelSelector (在查詢中): 字串
limit (在查詢中): 整數
pretty (在查詢中): 字串
resourceVersion (在查詢中): 字串
resourceVersionMatch (在查詢中): 字串
sendInitialEvents (在查詢中): 布林值
timeoutSeconds (在查詢中): 整數
watch (在查詢中): 布林值
回應
200 (PodSchedulingContextList): OK
401: 未經授權
list
列出或監看 PodSchedulingContext 種類的物件
HTTP 請求
GET /apis/resource.k8s.io/v1alpha3/podschedulingcontexts
參數
allowWatchBookmarks (在查詢中): 布林值
continue (在查詢中): 字串
fieldSelector (在查詢中): 字串
labelSelector (在查詢中): 字串
limit (在查詢中): 整數
pretty (在查詢中): 字串
resourceVersion (在查詢中): 字串
resourceVersionMatch (在查詢中): 字串
sendInitialEvents (在查詢中): 布林值
timeoutSeconds (在查詢中): 整數
watch (在查詢中): 布林值
回應
200 (PodSchedulingContextList): OK
401: 未經授權
create
建立 PodSchedulingContext
HTTP 請求
POST /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/podschedulingcontexts
參數
namespace (在路徑中): 字串, 必填
body: PodSchedulingContext, 必填
dryRun (在查詢中): 字串
fieldManager (在查詢中): 字串
fieldValidation (在查詢中): 字串
pretty (在查詢中): 字串
回應
200 (PodSchedulingContext): OK
201 (PodSchedulingContext): 已建立
202 (PodSchedulingContext): 已接受
401: 未經授權
update
取代指定的 PodSchedulingContext
HTTP 請求
PUT /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/podschedulingcontexts/{name}
參數
name (在路徑中): 字串, 必填
PodSchedulingContext 的名稱
namespace (在路徑中): 字串, 必填
body: PodSchedulingContext, 必填
dryRun (在查詢中): 字串
fieldManager (在查詢中): 字串
fieldValidation (在查詢中): 字串
pretty (在查詢中): 字串
回應
200 (PodSchedulingContext): OK
201 (PodSchedulingContext): 已建立
401: 未經授權
update
取代指定 PodSchedulingContext 的狀態
HTTP 請求
PUT /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/podschedulingcontexts/{name}/status
參數
name (在路徑中): 字串, 必填
PodSchedulingContext 的名稱
namespace (在路徑中): 字串, 必填
body: PodSchedulingContext, 必填
dryRun (在查詢中): 字串
fieldManager (在查詢中): 字串
fieldValidation (在查詢中): 字串
pretty (在查詢中): 字串
回應
200 (PodSchedulingContext): OK
201 (PodSchedulingContext): 已建立
401: 未經授權
patch
部分更新指定的 PodSchedulingContext
HTTP 請求
PATCH /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/podschedulingcontexts/{name}
參數
name (在路徑中): 字串, 必填
PodSchedulingContext 的名稱
namespace (在路徑中): 字串, 必填
body: Patch, 必填
dryRun (在查詢中): 字串
fieldManager (在查詢中): 字串
fieldValidation (在查詢中): 字串
force (在查詢中): 布林值
pretty (在查詢中): 字串
回應
200 (PodSchedulingContext): OK
201 (PodSchedulingContext): 已建立
401: 未經授權
patch
部分更新指定 PodSchedulingContext 的狀態
HTTP 請求
PATCH /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/podschedulingcontexts/{name}/status
參數
name (在路徑中): 字串, 必填
PodSchedulingContext 的名稱
namespace (在路徑中): 字串, 必填
body: Patch, 必填
dryRun (在查詢中): 字串
fieldManager (在查詢中): 字串
fieldValidation (在查詢中): 字串
force (在查詢中): 布林值
pretty (在查詢中): 字串
回應
200 (PodSchedulingContext): OK
201 (PodSchedulingContext): 已建立
401: 未經授權
delete
刪除 PodSchedulingContext
HTTP 請求
DELETE /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/podschedulingcontexts/{name}
參數
name (在路徑中): 字串, 必填
PodSchedulingContext 的名稱
namespace (在路徑中): 字串, 必填
body: DeleteOptions
dryRun (在查詢中): 字串
gracePeriodSeconds (在查詢中): 整數
pretty (在查詢中): 字串
propagationPolicy (在查詢中): 字串
回應
200 (PodSchedulingContext): OK
202 (PodSchedulingContext): 已接受
401: 未經授權
deletecollection
刪除 PodSchedulingContext 的集合
HTTP 請求
DELETE /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/podschedulingcontexts
參數
namespace (在路徑中): 字串, 必填
body: DeleteOptions
continue (在查詢中): 字串
dryRun (在查詢中): 字串
fieldSelector (在查詢中): 字串
gracePeriodSeconds (在查詢中): 整數
labelSelector (在查詢中): 字串
limit (在查詢中): 整數
pretty (在查詢中): 字串
propagationPolicy (在查詢中): 字串
resourceVersion (在查詢中): 字串
resourceVersionMatch (在查詢中): 字串
sendInitialEvents (在查詢中): 布林值
timeoutSeconds (在查詢中): 整數
回應
200 (Status): OK
401: 未經授權
此頁面為自動產生。
如果您計劃回報此頁面的問題,請在您的問題描述中提及此頁面為自動產生。修正可能需要在 Kubernetes 專案的其他地方進行。