ResourceQuota
apiVersion: v1
import "k8s.io/api/core/v1"
ResourceQuota
ResourceQuota 按名稱空間強制執行聚合配額限制。
apiVersion: v1
kind: ResourceQuota
metadata (ObjectMeta)
標準物件的元資料。更多資訊:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
spec (ResourceQuotaSpec)
Spec 定義了期望的配額。更多資訊: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
status (ResourceQuotaStatus)
Status 定義了實際強制執行的配額及其當前使用情況。更多資訊: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
ResourceQuotaSpec
ResourceQuotaSpec 定義了要為配額強制執行的期望的硬限制。
hard (map[string]Quantity)
hard 是每個命名資源的期望硬限制集。更多資訊: https://kubernetes.club.tw/docs/concepts/policy/resource-quotas/
scopeSelector (ScopeSelector)
scopeSelector 也是一組過濾器,如必須匹配配額所跟蹤的每個物件的範圍,但使用 ScopeSelectorOperator 與可能的值結合表示。要使資源匹配,必須同時匹配範圍 AND scopeSelector(如果在 spec 中指定)。
範圍選擇器表示由範圍資源選擇器要求所表示的選擇器的 AND 運算。
scopeSelector.matchExpressions ([]ScopedResourceSelectorRequirement)
原子性:在合併期間將被替換
按資源範圍對範圍選擇器需求的列表。
範圍資源選擇器需求是一個選擇器,它包含值、範圍名稱以及將範圍名稱與值相關聯的運算子。
scopeSelector.matchExpressions.operator (string), required
表示範圍與一組值之間的關係。有效運算子為 In, NotIn, Exists, DoesNotExist。
scopeSelector.matchExpressions.scopeName (string), required
選擇器適用的範圍的名稱。
scopeSelector.matchExpressions.values ([]string)
原子性:在合併期間將被替換
字串值陣列。如果運算子是 In 或 NotIn,則 values 陣列不能為空。如果運算子是 Exists 或 DoesNotExist,則 values 陣列必須為空。此陣列在戰略合併補丁期間被替換。
scopes ([]string)
原子性:在合併期間將被替換
一組必須匹配配額所跟蹤的每個物件的過濾器。如果未指定,則配額匹配所有物件。
ResourceQuotaStatus
ResourceQuotaStatus 定義了強制執行的硬限制和觀測到的使用情況。
hard (map[string]Quantity)
Hard 是每個命名資源的強制執行硬限制集。更多資訊: https://kubernetes.club.tw/docs/concepts/policy/resource-quotas/
used (map[string]Quantity)
Used 是名稱空間中該資源的當前觀測到的總使用量。
ResourceQuotaList
ResourceQuotaList 是 ResourceQuota 項的列表。
apiVersion: v1
kind: ResourceQuotaList
metadata (ListMeta)
標準列表元資料。更多資訊: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
items ([]ResourceQuota), required
Items 是 ResourceQuota 物件的列表。更多資訊: https://kubernetes.club.tw/docs/concepts/policy/resource-quotas/
操作
get
讀取指定的 ResourceQuota
HTTP 請求
GET /api/v1/namespaces/{namespace}/resourcequotas/{name}
引數
響應
200 (ResourceQuota): OK
401: 未授權
get
讀取指定 ResourceQuota 的狀態
HTTP 請求
GET /api/v1/namespaces/{namespace}/resourcequotas/{name}/status
引數
響應
200 (ResourceQuota): OK
401: 未授權
list
列出或監視 ResourceQuota 型別的物件
HTTP 請求
GET /api/v1/namespaces/{namespace}/resourcequotas
引數
namespace (在路徑中): string,必填
allowWatchBookmarks (在查詢中): boolean
continue (在查詢中): string
fieldSelector (在查詢中): string
labelSelector (在查詢中): string
limit (在查詢中): integer
pretty (在查詢中): string
resourceVersion (在查詢中): string
resourceVersionMatch (在查詢中): string
sendInitialEvents (在查詢中): boolean
timeoutSeconds (在查詢中): integer
watch (在查詢中): boolean
響應
200 (ResourceQuotaList): OK
401: 未授權
list
列出或監視 ResourceQuota 型別的物件
HTTP 請求
GET /api/v1/resourcequotas
引數
allowWatchBookmarks (在查詢中): boolean
continue (在查詢中): string
fieldSelector (在查詢中): string
labelSelector (在查詢中): string
limit (在查詢中): integer
pretty (在查詢中): string
resourceVersion (在查詢中): string
resourceVersionMatch (在查詢中): string
sendInitialEvents (在查詢中): boolean
timeoutSeconds (在查詢中): integer
watch (在查詢中): boolean
響應
200 (ResourceQuotaList): OK
401: 未授權
create
建立一個 ResourceQuota
HTTP 請求
POST /api/v1/namespaces/{namespace}/resourcequotas
引數
namespace (在路徑中): string,必填
body: ResourceQuota, required
dryRun (在查詢中): string
fieldManager (在查詢中): string
fieldValidation (在查詢中): string
pretty (在查詢中): string
響應
200 (ResourceQuota): OK
201 (ResourceQuota): Created
202 (ResourceQuota): Accepted
401: 未授權
update
替換指定的 ResourceQuota
HTTP 請求
PUT /api/v1/namespaces/{namespace}/resourcequotas/{name}
引數
name (在路徑中): string,必填
ResourceQuota 的名稱
namespace (在路徑中): string,必填
body: ResourceQuota, required
dryRun (在查詢中): string
fieldManager (在查詢中): string
fieldValidation (在查詢中): string
pretty (在查詢中): string
響應
200 (ResourceQuota): OK
201 (ResourceQuota): Created
401: 未授權
update
替換指定 ResourceQuota 的狀態
HTTP 請求
PUT /api/v1/namespaces/{namespace}/resourcequotas/{name}/status
引數
name (在路徑中): string,必填
ResourceQuota 的名稱
namespace (在路徑中): string,必填
body: ResourceQuota, required
dryRun (在查詢中): string
fieldManager (在查詢中): string
fieldValidation (在查詢中): string
pretty (在查詢中): string
響應
200 (ResourceQuota): OK
201 (ResourceQuota): Created
401: 未授權
patch
部分更新指定的 ResourceQuota
HTTP 請求
PATCH /api/v1/namespaces/{namespace}/resourcequotas/{name}
引數
name (在路徑中): string,必填
ResourceQuota 的名稱
namespace (在路徑中): string,必填
body: Patch,必需
dryRun (在查詢中): string
fieldManager (在查詢中): string
fieldValidation (在查詢中): string
force (在查詢中): boolean
pretty (在查詢中): string
響應
200 (ResourceQuota): OK
201 (ResourceQuota): Created
401: 未授權
patch
部分更新指定 ResourceQuota 的狀態
HTTP 請求
PATCH /api/v1/namespaces/{namespace}/resourcequotas/{name}/status
引數
name (在路徑中): string,必填
ResourceQuota 的名稱
namespace (在路徑中): string,必填
body: Patch,必需
dryRun (在查詢中): string
fieldManager (在查詢中): string
fieldValidation (在查詢中): string
force (在查詢中): boolean
pretty (在查詢中): string
響應
200 (ResourceQuota): OK
201 (ResourceQuota): Created
401: 未授權
delete
刪除一個 ResourceQuota
HTTP 請求
DELETE /api/v1/namespaces/{namespace}/resourcequotas/{name}
引數
name (在路徑中): string,必填
ResourceQuota 的名稱
namespace (在路徑中): string,必填
body: DeleteOptions
dryRun (在查詢中): string
gracePeriodSeconds (在查詢中): integer
ignoreStoreReadErrorWithClusterBreakingPotential (在查詢中): boolean
pretty (在查詢中): string
propagationPolicy (在查詢中): string
響應
200 (ResourceQuota): OK
202 (ResourceQuota): Accepted
401: 未授權
deletecollection
刪除 ResourceQuota 的集合
HTTP 請求
DELETE /api/v1/namespaces/{namespace}/resourcequotas
引數
namespace (在路徑中): string,必填
body: DeleteOptions
continue (在查詢中): string
dryRun (在查詢中): string
fieldSelector (在查詢中): string
gracePeriodSeconds (在查詢中): integer
ignoreStoreReadErrorWithClusterBreakingPotential (在查詢中): boolean
labelSelector (在查詢中): string
limit (在查詢中): integer
pretty (在查詢中): string
propagationPolicy (在查詢中): string
resourceVersion (在查詢中): string
resourceVersionMatch (在查詢中): string
sendInitialEvents (在查詢中): boolean
timeoutSeconds (在查詢中): integer
響應
200 (Status): OK
401: 未授權
本頁面是自動生成的。
如果你打算報告此頁面存在的問題,請在問題描述中提及此頁面是自動生成的。修復可能需要在 Kubernetes 專案的其他地方進行。