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.dev.org.tw/docs/concepts/policy/resource-quotas/
scopeSelector (ScopeSelector)
scopeSelector 也是像 scopes 一樣的篩選器集合,這些篩選器必須符合配額追蹤的每個物件,但使用 ScopeSelectorOperator 與可能的值組合表示。 若要使資源符合,則必須同時符合 scopes 和 scopeSelector(如果在 spec 中指定)。
scope selector 代表由 scoped-resource selector 需求所代表的選擇器的 AND 運算。
scopeSelector.matchExpressions ([]ScopedResourceSelectorRequirement)
原子性:將在合併期間被取代
依資源範圍劃分的 scope selector 需求清單。
scoped-resource selector 需求是一個選擇器,其中包含值、範圍名稱和將範圍名稱與值相關聯的運算符。
scopeSelector.matchExpressions.operator (string), 必填
代表範圍與一組值的關係。 有效的運算符為 In、NotIn、Exists、DoesNotExist。
scopeSelector.matchExpressions.scopeName (string), 必填
選擇器套用的範圍名稱。
scopeSelector.matchExpressions.values ([]string)
原子性:將在合併期間被取代
字串值陣列。 如果運算符為 In 或 NotIn,則 values 陣列不得為空。 如果運算符為 Exists 或 DoesNotExist,則 values 陣列必須為空。 此陣列在策略性合併修補期間被取代。
scopes ([]string)
原子性:將在合併期間被取代
篩選器集合,必須符合配額追蹤的每個物件。 如果未指定,則配額符合所有物件。
ResourceQuotaStatus
ResourceQuotaStatus 定義強制執行的硬性限制和觀察到的使用量。
hard (map[string]Quantity)
Hard 是每個具名資源強制執行的硬性限制集合。 更多資訊: https://kubernetes.dev.org.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), 必填
Items 是 ResourceQuota 物件的清單。 更多資訊: https://kubernetes.dev.org.tw/docs/concepts/policy/resource-quotas/
操作
get
讀取指定的 ResourceQuota
HTTP 請求
GET /api/v1/namespaces/{namespace}/resourcequotas/{name}
參數
回應
200 (ResourceQuota): 成功
401: 未經授權
get
讀取指定 ResourceQuota 的狀態
HTTP 請求
GET /api/v1/namespaces/{namespace}/resourcequotas/{name}/status
參數
回應
200 (ResourceQuota): 成功
401: 未經授權
list
列出或監看 ResourceQuota 類型的物件
HTTP 請求
GET /api/v1/namespaces/{namespace}/resourcequotas
參數
namespace (在路徑中): 字串,必填
allowWatchBookmarks (在查詢中): 布林值
continue (在查詢中): 字串
fieldSelector (在查詢中): 字串
labelSelector (在查詢中): 字串
limit (在查詢中): 整數
pretty (在查詢中): 字串
resourceVersion (在查詢中): 字串
resourceVersionMatch (在查詢中): 字串
sendInitialEvents (在查詢中): 布林值
timeoutSeconds (在查詢中): 整數
watch (在查詢中): 布林值
回應
200 (ResourceQuotaList): 成功
401: 未經授權
list
列出或監看 ResourceQuota 類型的物件
HTTP 請求
GET /api/v1/resourcequotas
參數
allowWatchBookmarks (在查詢中): 布林值
continue (在查詢中): 字串
fieldSelector (在查詢中): 字串
labelSelector (在查詢中): 字串
limit (在查詢中): 整數
pretty (在查詢中): 字串
resourceVersion (在查詢中): 字串
resourceVersionMatch (在查詢中): 字串
sendInitialEvents (在查詢中): 布林值
timeoutSeconds (在查詢中): 整數
watch (在查詢中): 布林值
回應
200 (ResourceQuotaList): 成功
401: 未經授權
create
建立 ResourceQuota
HTTP 請求
POST /api/v1/namespaces/{namespace}/resourcequotas
參數
namespace (在路徑中): 字串,必填
body: ResourceQuota,必填
dryRun (in query): 字串
fieldManager (in query): 字串
fieldValidation (in query): 字串
pretty (在查詢中): 字串
回應
200 (ResourceQuota): 成功
201 (ResourceQuota): 已建立
202 (ResourceQuota): 已接受
401: 未經授權
update
取代指定的 ResourceQuota
HTTP 請求
PUT /api/v1/namespaces/{namespace}/resourcequotas/{name}
參數
name (在路徑中): 字串,必填
ResourceQuota 的名稱
namespace (在路徑中): 字串,必填
body: ResourceQuota,必填
dryRun (in query): 字串
fieldManager (in query): 字串
fieldValidation (in query): 字串
pretty (在查詢中): 字串
回應
200 (ResourceQuota): 成功
201 (ResourceQuota): 已建立
401: 未經授權
update
取代指定 ResourceQuota 的狀態
HTTP 請求
PUT /api/v1/namespaces/{namespace}/resourcequotas/{name}/status
參數
name (在路徑中): 字串,必填
ResourceQuota 的名稱
namespace (在路徑中): 字串,必填
body: ResourceQuota,必填
dryRun (in query): 字串
fieldManager (in query): 字串
fieldValidation (in query): 字串
pretty (在查詢中): 字串
回應
200 (ResourceQuota): 成功
201 (ResourceQuota): 已建立
401: 未經授權
patch
部分更新指定的 ResourceQuota
HTTP 請求
PATCH /api/v1/namespaces/{namespace}/resourcequotas/{name}
參數
name (在路徑中): 字串,必填
ResourceQuota 的名稱
namespace (在路徑中): 字串,必填
body: Patch, 必要
dryRun (in query): 字串
fieldManager (in query): 字串
fieldValidation (in query): 字串
force (in query): 布林值
pretty (在查詢中): 字串
回應
200 (ResourceQuota): 成功
201 (ResourceQuota): 已建立
401: 未經授權
patch
部分更新指定 ResourceQuota 的狀態
HTTP 請求
PATCH /api/v1/namespaces/{namespace}/resourcequotas/{name}/status
參數
name (在路徑中): 字串,必填
ResourceQuota 的名稱
namespace (在路徑中): 字串,必填
body: Patch, 必要
dryRun (in query): 字串
fieldManager (in query): 字串
fieldValidation (in query): 字串
force (in query): 布林值
pretty (在查詢中): 字串
回應
200 (ResourceQuota): 成功
201 (ResourceQuota): 已建立
401: 未經授權
delete
刪除 ResourceQuota
HTTP 請求
DELETE /api/v1/namespaces/{namespace}/resourcequotas/{name}
參數
name (在路徑中): 字串,必填
ResourceQuota 的名稱
namespace (在路徑中): 字串,必填
body: DeleteOptions
dryRun (in query): 字串
gracePeriodSeconds (in query): 整數
pretty (在查詢中): 字串
propagationPolicy (in query): 字串
回應
200 (ResourceQuota): 成功
202 (ResourceQuota): 已接受
401: 未經授權
deletecollection
刪除 ResourceQuota 集合
HTTP 請求
DELETE /api/v1/namespaces/{namespace}/resourcequotas
參數
namespace (在路徑中): 字串,必填
body: DeleteOptions
continue (在查詢中): 字串
dryRun (in query): 字串
fieldSelector (在查詢中): 字串
gracePeriodSeconds (in query): 整數
labelSelector (在查詢中): 字串
limit (在查詢中): 整數
pretty (在查詢中): 字串
propagationPolicy (in query): 字串
resourceVersion (在查詢中): 字串
resourceVersionMatch (在查詢中): 字串
sendInitialEvents (在查詢中): 布林值
timeoutSeconds (在查詢中): 整數
回應
200 (Status): 成功
401: 未經授權
此頁面為自動產生。
如果您計劃回報此頁面的問題,請在您的問題描述中提及此頁面為自動產生。此修復可能需要在 Kubernetes 專案的其他地方進行。