ServiceCIDR v1beta1
apiVersion: networking.k8s.io/v1beta1
import "k8s.io/api/networking/v1beta1"
ServiceCIDR
ServiceCIDR 使用 CIDR 格式定義 IP 位址範圍 (例如 192.168.0.0/24 或 2001:db2::/64)。此範圍用於將 ClusterIP 分配給 Service 物件。
apiVersion: networking.k8s.io/v1beta1
kind: ServiceCIDR
metadata (ObjectMeta)
標準物件的 metadata。更多資訊:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
spec (ServiceCIDRSpec)
spec 是 ServiceCIDR 的所需狀態。更多資訊:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
status (ServiceCIDRStatus)
status 代表 ServiceCIDR 的目前狀態。更多資訊:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
ServiceCIDRSpec
ServiceCIDRSpec 定義使用者想要用於分配 Service 的 ClusterIP 的 CIDR。
cidrs ([]string)
Atomic:將在合併期間被取代
CIDRs 定義 CIDR 標記法 (例如 "192.168.0.0/24" 或 "2001:db8::/64") 中的 IP 區塊,從中指派服務叢集 IP。最多允許兩個 CIDR,每個 IP 系列各一個。此欄位為不可變。
ServiceCIDRStatus
ServiceCIDRStatus 描述 ServiceCIDR 的目前狀態。
conditions ([]Condition)
Patch 策略:在金鑰
type
上合併Map:在合併期間,金鑰類型上的唯一值將被保留
conditions 保留 metav1.Condition 陣列,用於描述 ServiceCIDR 的狀態。目前服務狀態
Condition 包含此 API 資源目前狀態的一個方面的詳細資訊。
conditions.lastTransitionTime (Time),必要
lastTransitionTime 是條件上次從一個狀態轉換到另一個狀態的時間。這應該是基礎條件變更的時間。如果未知,則使用 API 欄位變更的時間是可以接受的。
Time 是 time.Time 的包裝函式,支援正確地封送處理到 YAML 和 JSON。為 time 套件提供的許多工廠方法提供了包裝函式。
conditions.message (string),必要
message 是人類可讀訊息,指示有關轉換的詳細資訊。這可能是空字串。
conditions.reason (string),必要
reason 包含程式設計識別碼,指示條件上次轉換的原因。特定條件類型的生產者可以定義此欄位的預期值和含義,以及這些值是否被視為保證的 API。值應為 CamelCase 字串。此欄位不得為空。
conditions.status (string),必要
條件的狀態,True、False、Unknown 之一。
conditions.type (string),必要
CamelCase 或 foo.example.com/CamelCase 中的條件類型。
conditions.observedGeneration (int64)
observedGeneration 代表條件設定所依據的 .metadata.generation。例如,如果 .metadata.generation 目前為 12,但 .status.conditions[x].observedGeneration 為 9,則條件相對於執行個體的目前狀態已過時。
ServiceCIDRList
ServiceCIDRList 包含 ServiceCIDR 物件的清單。
apiVersion: networking.k8s.io/v1beta1
kind: ServiceCIDRList
metadata (ListMeta)
標準物件的 metadata。更多資訊:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
items ([]ServiceCIDR),必要
items 是 ServiceCIDR 的清單。
操作
get
讀取指定的 ServiceCIDR
HTTP 請求
GET /apis/networking.k8s.io/v1beta1/servicecidrs/{name}
參數
name (在路徑中):字串,必要
ServiceCIDR 的名稱
pretty (在查詢中):字串
回應
200 (ServiceCIDR):OK
401:未經授權
get
讀取指定 ServiceCIDR 的狀態
HTTP 請求
GET /apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status
參數
name (在路徑中):字串,必要
ServiceCIDR 的名稱
pretty (在查詢中):字串
回應
200 (ServiceCIDR):OK
401:未經授權
list
列出或監看 ServiceCIDR 類型的物件
HTTP 請求
GET /apis/networking.k8s.io/v1beta1/servicecidrs
參數
allowWatchBookmarks (在查詢中):布林值
continue (在查詢中):字串
fieldSelector (在查詢中):字串
labelSelector (在查詢中):字串
limit (在查詢中):整數
pretty (在查詢中):字串
resourceVersion (在查詢中):字串
resourceVersionMatch (在查詢中):字串
sendInitialEvents (在查詢中):布林值
timeoutSeconds (在查詢中):整數
watch (在查詢中):布林值
回應
200 (ServiceCIDRList):OK
401:未經授權
create
建立 ServiceCIDR
HTTP 請求
POST /apis/networking.k8s.io/v1beta1/servicecidrs
參數
body: ServiceCIDR,必要
dryRun (在查詢中):字串
fieldManager (在查詢中):字串
fieldValidation (在查詢中):字串
pretty (在查詢中):字串
回應
200 (ServiceCIDR):OK
201 (ServiceCIDR):已建立
202 (ServiceCIDR):已接受
401:未經授權
update
取代指定的 ServiceCIDR
HTTP 請求
PUT /apis/networking.k8s.io/v1beta1/servicecidrs/{name}
參數
name (在路徑中):字串,必要
ServiceCIDR 的名稱
body: ServiceCIDR,必要
dryRun (在查詢中):字串
fieldManager (在查詢中):字串
fieldValidation (在查詢中):字串
pretty (在查詢中):字串
回應
200 (ServiceCIDR):OK
201 (ServiceCIDR):已建立
401:未經授權
update
取代指定 ServiceCIDR 的狀態
HTTP 請求
PUT /apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status
參數
name (在路徑中):字串,必要
ServiceCIDR 的名稱
body: ServiceCIDR,必要
dryRun (在查詢中):字串
fieldManager (在查詢中):字串
fieldValidation (在查詢中):字串
pretty (在查詢中):字串
回應
200 (ServiceCIDR):OK
201 (ServiceCIDR):已建立
401:未經授權
patch
部分更新指定的 ServiceCIDR
HTTP 請求
PATCH /apis/networking.k8s.io/v1beta1/servicecidrs/{name}
參數
name (在路徑中):字串,必要
ServiceCIDR 的名稱
body: Patch,必要
dryRun (在查詢中):字串
fieldManager (在查詢中):字串
fieldValidation (在查詢中):字串
force (在查詢中):布林值
pretty (在查詢中):字串
回應
200 (ServiceCIDR):OK
201 (ServiceCIDR):已建立
401:未經授權
patch
部分更新指定 ServiceCIDR 的狀態
HTTP 請求
PATCH /apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status
參數
name (在路徑中):字串,必要
ServiceCIDR 的名稱
body: Patch,必要
dryRun (在查詢中):字串
fieldManager (在查詢中):字串
fieldValidation (在查詢中):字串
force (在查詢中):布林值
pretty (在查詢中):字串
回應
200 (ServiceCIDR):OK
201 (ServiceCIDR):已建立
401:未經授權
delete
刪除 ServiceCIDR
HTTP 請求
DELETE /apis/networking.k8s.io/v1beta1/servicecidrs/{name}
參數
name (在路徑中):字串,必要
ServiceCIDR 的名稱
body: DeleteOptions
dryRun (在查詢中):字串
gracePeriodSeconds (查詢參數): 整數
pretty (在查詢中):字串
propagationPolicy (查詢參數): 字串
回應
200 (Status): 成功
202 (Status): 已接受
401:未經授權
deletecollection
刪除 ServiceCIDR 集合
HTTP 請求
DELETE /apis/networking.k8s.io/v1beta1/servicecidrs
參數
body: DeleteOptions
continue (在查詢中):字串
dryRun (在查詢中):字串
fieldSelector (在查詢中):字串
gracePeriodSeconds (查詢參數): 整數
labelSelector (在查詢中):字串
limit (在查詢中):整數
pretty (在查詢中):字串
propagationPolicy (查詢參數): 字串
resourceVersion (在查詢中):字串
resourceVersionMatch (在查詢中):字串
sendInitialEvents (在查詢中):布林值
timeoutSeconds (在查詢中):整數
回應
200 (Status): 成功
401:未經授權
此頁面為自動產生。
如果您計畫回報此頁面的問題,請在您的問題描述中提及此頁面為自動產生。修正可能需要在 Kubernetes 專案的其他地方進行。