LimitRange
apiVersion: v1
import "k8s.io/api/core/v1"
LimitRange
LimitRange 為名稱空間中的每種資源設定資源使用限制。
apiVersion: v1
型別:LimitRange
metadata (ObjectMeta)
標準物件的元資料。更多資訊:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
spec (LimitRangeSpec)
Spec 定義了強制執行的限制。更多資訊:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
LimitRangeSpec
LimitRangeSpec 定義了與型別匹配的資源的最小/最大使用限制。
limits ([]LimitRangeItem),必需
原子性:在合併期間將被替換
Limits 是強制執行的 LimitRangeItem 物件列表。
LimitRangeItem 定義了與型別匹配的任何資源的最小/最大使用限制。
limits.type (string),必需
此限制適用的資源型別。
limits.default (map[string]數量)
如果省略資源限制,則按資源名稱設定的預設資源需求限制值。
limits.defaultRequest (map[string]數量)
DefaultRequest 是如果省略資源請求,則按資源名稱設定的預設資源需求請求值。
limits.max (map[string]數量)
按資源名稱設定的此類別的最大使用約束。
limits.maxLimitRequestRatio (map[string]數量)
如果指定了 MaxLimitRequestRatio,則命名資源必須具有非零的請求和限制,其中限制除以請求小於或等於列舉值;這表示命名資源的最大突發值。
limits.min (map[string]數量)
按資源名稱設定的此類別的最小使用約束。
LimitRangeList
LimitRangeList 是 LimitRange 項的列表。
apiVersion: v1
型別:LimitRangeList
metadata (ListMeta)
標準列表元資料。更多資訊: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
items ([]LimitRange),必需
Items 是 LimitRange 物件的列表。更多資訊:https://kubernetes.club.tw/docs/concepts/configuration/manage-resources-containers/
操作
get
讀取指定的 LimitRange
HTTP 請求
GET /api/v1/namespaces/{namespace}/limitranges/{name}
引數
響應
200 (LimitRange):確定
401: 未授權
list
列出或監視 LimitRange 型別的物件
HTTP 請求
GET /api/v1/namespaces/{namespace}/limitranges
引數
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 (LimitRangeList):確定
401: 未授權
list
列出或監視 LimitRange 型別的物件
HTTP 請求
GET /api/v1/limitranges
引數
allowWatchBookmarks (在查詢中): boolean
continue (在查詢中): string
fieldSelector (在查詢中): string
labelSelector (在查詢中): string
limit (在查詢中): integer
pretty (在查詢中): string
resourceVersion (在查詢中): string
resourceVersionMatch (在查詢中): string
sendInitialEvents (在查詢中): boolean
timeoutSeconds (在查詢中): integer
watch (在查詢中): boolean
響應
200 (LimitRangeList):確定
401: 未授權
create
建立 LimitRange
HTTP 請求
POST /api/v1/namespaces/{namespace}/limitranges
引數
namespace (在路徑中): string,必填
body: LimitRange,必需
dryRun (在查詢中): string
fieldManager (在查詢中): string
fieldValidation (在查詢中): string
pretty (在查詢中): string
響應
200 (LimitRange):確定
201 (LimitRange):已建立
202 (LimitRange):已接受
401: 未授權
update
替換指定的 LimitRange
HTTP 請求
PUT /api/v1/namespaces/{namespace}/limitranges/{name}
引數
name (在路徑中): string,必填
LimitRange 的名稱
namespace (在路徑中): string,必填
body: LimitRange,必需
dryRun (在查詢中): string
fieldManager (在查詢中): string
fieldValidation (在查詢中): string
pretty (在查詢中): string
響應
200 (LimitRange):確定
201 (LimitRange):已建立
401: 未授權
patch
部分更新指定的 LimitRange
HTTP 請求
PATCH /api/v1/namespaces/{namespace}/limitranges/{name}
引數
name (在路徑中): string,必填
LimitRange 的名稱
namespace (在路徑中): string,必填
body: Patch,必需
dryRun (在查詢中): string
fieldManager (在查詢中): string
fieldValidation (在查詢中): string
force (在查詢中): boolean
pretty (在查詢中): string
響應
200 (LimitRange):確定
201 (LimitRange):已建立
401: 未授權
delete
刪除 LimitRange
HTTP 請求
DELETE /api/v1/namespaces/{namespace}/limitranges/{name}
引數
name (在路徑中): string,必填
LimitRange 的名稱
namespace (在路徑中): string,必填
body: DeleteOptions
dryRun (在查詢中): string
gracePeriodSeconds (在查詢中): integer
ignoreStoreReadErrorWithClusterBreakingPotential (在查詢中): boolean
pretty (在查詢中): string
propagationPolicy (在查詢中): string
響應
200 (Status): OK
202 (Status): 已接受
401: 未授權
deletecollection
刪除 LimitRange 集合
HTTP 請求
DELETE /api/v1/namespaces/{namespace}/limitranges
引數
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 專案的其他地方進行。