ReplicationController
apiVersion: v1
import "k8s.io/api/core/v1"
ReplicationController
ReplicationController 代表複寫控制器的組態。
apiVersion: v1
kind: ReplicationController
metadata (ObjectMeta)
如果 ReplicationController 的 Labels 為空,則預設為與複寫控制器管理的 Pod 相同。標準物件的中繼資料。更多資訊:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
spec (ReplicationControllerSpec)
Spec 定義複寫控制器所需行為的規格。更多資訊:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
status (ReplicationControllerStatus)
Status 是最近觀察到的複寫控制器狀態。此資料可能因某些時間範圍而過時。由系統填入。唯讀。更多資訊:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
ReplicationControllerSpec
ReplicationControllerSpec 是複寫控制器的規格。
selector (map[string]string)
Selector 是 Pod 的標籤查詢,應與 Replicas 計數相符。如果 Selector 為空,則預設為 Pod 範本上存在的標籤。為了由此複寫控制器控制,標籤鍵和值必須相符,如果為空,則預設為 Pod 範本上的標籤。更多資訊:https://kubernetes.dev.org.tw/docs/concepts/overview/working-with-objects/labels/#label-selectors
template (PodTemplateSpec)
Template 是描述在偵測到複本不足時將建立的 Pod 的物件。這優先於 TemplateRef。唯一允許的 template.spec.restartPolicy 值為 "Always"。更多資訊:https://kubernetes.dev.org.tw/docs/concepts/workloads/controllers/replicationcontroller#pod-template
replicas (int32)
Replicas 是所需複本的數量。這是用於區分明確零值和未指定值的指標。預設值為 1。更多資訊:https://kubernetes.dev.org.tw/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller
minReadySeconds (int32)
新建立的 Pod 在其任何容器崩潰的情況下應準備就緒的最小秒數,以便將其視為可用。預設值為 0(Pod 將在準備就緒後立即被視為可用)
ReplicationControllerStatus
ReplicationControllerStatus 代表複寫控制器的目前狀態。
replicas (int32),必要
Replicas 是最近觀察到的複本數量。更多資訊:https://kubernetes.dev.org.tw/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller
availableReplicas (int32)
此複寫控制器的可用複本數(至少準備就緒 minReadySeconds)。
readyReplicas (int32)
此複寫控制器的就緒複本數。
fullyLabeledReplicas (int32)
標籤與複寫控制器的 Pod 範本標籤相符的 Pod 數量。
conditions ([]ReplicationControllerCondition)
Patch 策略:在索引鍵
type
上合併Map:索引鍵類型上的唯一值將在合併期間保留
代表複寫控制器目前狀態的最新可用觀察結果。
observedGeneration (int64)
ObservedGeneration 反映了最近觀察到的副本控制器 (replication controller) 的世代。
ReplicationControllerList
ReplicationControllerList 是副本控制器 (replication controller) 的集合。
apiVersion: v1
種類 (kind): ReplicationControllerList
metadata (ListMeta)
標準列表 metadata。 更多資訊:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
items ([]ReplicationController), 必填
副本控制器 (replication controller) 的列表。 更多資訊:https://kubernetes.dev.org.tw/docs/concepts/workloads/controllers/replicationcontroller
操作 (Operations)
get
讀取指定的 ReplicationController
HTTP 請求 (HTTP Request)
GET /api/v1/namespaces/{namespace}/replicationcontrollers/{name}
參數 (Parameters)
name (在路徑中 (in path)): 字串, 必填
ReplicationController 的名稱
namespace (在路徑中 (in path)): 字串, 必填
pretty (在查詢中 (in query)): 字串
回應 (Response)
200 (ReplicationController): 成功 (OK)
401: 未經授權 (Unauthorized)
get
讀取指定 ReplicationController 的狀態
HTTP 請求 (HTTP Request)
GET /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status
參數 (Parameters)
name (在路徑中 (in path)): 字串, 必填
ReplicationController 的名稱
namespace (在路徑中 (in path)): 字串, 必填
pretty (在查詢中 (in query)): 字串
回應 (Response)
200 (ReplicationController): 成功 (OK)
401: 未經授權 (Unauthorized)
list
列出或監看種類為 ReplicationController 的物件
HTTP 請求 (HTTP Request)
GET /api/v1/namespaces/{namespace}/replicationcontrollers
參數 (Parameters)
namespace (在路徑中 (in path)): 字串, 必填
allowWatchBookmarks (在查詢中 (in query)): 布林值 (boolean)
continue (在查詢中 (in query)): 字串
fieldSelector (在查詢中 (in query)): 字串
labelSelector (在查詢中 (in query)): 字串
limit (在查詢中 (in query)): 整數 (integer)
pretty (在查詢中 (in query)): 字串
resourceVersion (在查詢中 (in query)): 字串
resourceVersionMatch (在查詢中 (in query)): 字串
sendInitialEvents (在查詢中 (in query)): 布林值 (boolean)
timeoutSeconds (在查詢中 (in query)): 整數 (integer)
watch (在查詢中 (in query)): 布林值 (boolean)
回應 (Response)
200 (ReplicationControllerList): 成功 (OK)
401: 未經授權 (Unauthorized)
list
列出或監看種類為 ReplicationController 的物件
HTTP 請求 (HTTP Request)
GET /api/v1/replicationcontrollers
參數 (Parameters)
allowWatchBookmarks (在查詢中 (in query)): 布林值 (boolean)
continue (在查詢中 (in query)): 字串
fieldSelector (在查詢中 (in query)): 字串
labelSelector (在查詢中 (in query)): 字串
limit (在查詢中 (in query)): 整數 (integer)
pretty (在查詢中 (in query)): 字串
resourceVersion (在查詢中 (in query)): 字串
resourceVersionMatch (在查詢中 (in query)): 字串
sendInitialEvents (在查詢中 (in query)): 布林值 (boolean)
timeoutSeconds (在查詢中 (in query)): 整數 (integer)
watch (在查詢中 (in query)): 布林值 (boolean)
回應 (Response)
200 (ReplicationControllerList): 成功 (OK)
401: 未經授權 (Unauthorized)
create
建立 ReplicationController
HTTP 請求 (HTTP Request)
POST /api/v1/namespaces/{namespace}/replicationcontrollers
參數 (Parameters)
namespace (在路徑中 (in path)): 字串, 必填
body: ReplicationController, 必填
dryRun (在查詢中 (in query)): 字串
fieldManager (在查詢中 (in query)): 字串
fieldValidation (在查詢中 (in query)): 字串
pretty (在查詢中 (in query)): 字串
回應 (Response)
200 (ReplicationController): 成功 (OK)
201 (ReplicationController): 已建立 (Created)
202 (ReplicationController): 已接受 (Accepted)
401: 未經授權 (Unauthorized)
update
取代指定的 ReplicationController
HTTP 請求 (HTTP Request)
PUT /api/v1/namespaces/{namespace}/replicationcontrollers/{name}
參數 (Parameters)
name (在路徑中 (in path)): 字串, 必填
ReplicationController 的名稱
namespace (在路徑中 (in path)): 字串, 必填
body: ReplicationController, 必填
dryRun (在查詢中 (in query)): 字串
fieldManager (在查詢中 (in query)): 字串
fieldValidation (在查詢中 (in query)): 字串
pretty (在查詢中 (in query)): 字串
回應 (Response)
200 (ReplicationController): 成功 (OK)
201 (ReplicationController): 已建立 (Created)
401: 未經授權 (Unauthorized)
update
取代指定 ReplicationController 的狀態
HTTP 請求 (HTTP Request)
PUT /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status
參數 (Parameters)
name (在路徑中 (in path)): 字串, 必填
ReplicationController 的名稱
namespace (在路徑中 (in path)): 字串, 必填
body: ReplicationController, 必填
dryRun (在查詢中 (in query)): 字串
fieldManager (在查詢中 (in query)): 字串
fieldValidation (在查詢中 (in query)): 字串
pretty (在查詢中 (in query)): 字串
回應 (Response)
200 (ReplicationController): 成功 (OK)
201 (ReplicationController): 已建立 (Created)
401: 未經授權 (Unauthorized)
patch
部分更新指定的 ReplicationController
HTTP 請求 (HTTP Request)
PATCH /api/v1/namespaces/{namespace}/replicationcontrollers/{name}
參數 (Parameters)
name (在路徑中 (in path)): 字串, 必填
ReplicationController 的名稱
namespace (在路徑中 (in path)): 字串, 必填
body: Patch, 必填
dryRun (在查詢中 (in query)): 字串
fieldManager (在查詢中 (in query)): 字串
fieldValidation (在查詢中 (in query)): 字串
force (在查詢中 (in query)): 布林值 (boolean)
pretty (在查詢中 (in query)): 字串
回應 (Response)
200 (ReplicationController): 成功 (OK)
201 (ReplicationController): 已建立 (Created)
401: 未經授權 (Unauthorized)
patch
部分更新指定 ReplicationController 的狀態
HTTP 請求 (HTTP Request)
PATCH /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status
參數 (Parameters)
name (在路徑中 (in path)): 字串, 必填
ReplicationController 的名稱
namespace (在路徑中 (in path)): 字串, 必填
body: Patch, 必填
dryRun (在查詢中 (in query)): 字串
fieldManager (在查詢中 (in query)): 字串
fieldValidation (在查詢中 (in query)): 字串
force (在查詢中 (in query)): 布林值 (boolean)
pretty (在查詢中 (in query)): 字串
回應 (Response)
200 (ReplicationController): 成功 (OK)
201 (ReplicationController): 已建立 (Created)
401: 未經授權 (Unauthorized)
delete
刪除 ReplicationController
HTTP 請求 (HTTP Request)
DELETE /api/v1/namespaces/{namespace}/replicationcontrollers/{name}
參數 (Parameters)
name (在路徑中 (in path)): 字串, 必填
ReplicationController 的名稱
namespace (在路徑中 (in path)): 字串, 必填
body: DeleteOptions
dryRun (在查詢中 (in query)): 字串
gracePeriodSeconds (在查詢中 (in query)): 整數 (integer)
pretty (在查詢中 (in query)): 字串
propagationPolicy (在查詢中 (in query)): 字串
回應 (Response)
200 (Status): 成功 (OK)
202 (Status): 已接受 (Accepted)
401: 未經授權 (Unauthorized)
deletecollection
刪除 ReplicationController 的集合
HTTP 請求 (HTTP Request)
DELETE /api/v1/namespaces/{namespace}/replicationcontrollers
參數 (Parameters)
namespace (在路徑中 (in path)): 字串, 必填
body: DeleteOptions
continue (在查詢中 (in query)): 字串
dryRun (在查詢中 (in query)): 字串
fieldSelector (在查詢中 (in query)): 字串
gracePeriodSeconds (在查詢中 (in query)): 整數 (integer)
labelSelector (在查詢中 (in query)): 字串
limit (在查詢中 (in query)): 整數 (integer)
pretty (在查詢中 (in query)): 字串
propagationPolicy (在查詢中 (in query)): 字串
resourceVersion (在查詢中 (in query)): 字串
resourceVersionMatch (在查詢中 (in query)): 字串
sendInitialEvents (在查詢中 (in query)): 布林值 (boolean)
timeoutSeconds (在查詢中 (in query)): 整數 (integer)
回應 (Response)
200 (Status): 成功 (OK)
401: 未經授權 (Unauthorized)
此頁面為自動產生。
如果您計畫回報此頁面的問題,請在您的問題描述中提及此頁面為自動產生。此修正可能需要於 Kubernetes 專案的其他地方進行。