ReplicationController

ReplicationController 代表複寫控制器的組態。

apiVersion: v1

import "k8s.io/api/core/v1"

ReplicationController

ReplicationController 代表複寫控制器的組態。


ReplicationControllerSpec

ReplicationControllerSpec 是複寫控制器的規格。


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:索引鍵類型上的唯一值將在合併期間保留

    代表複寫控制器目前狀態的最新可用觀察結果。

    ReplicationControllerCondition 描述特定時間點的複寫控制器狀態。

    • conditions.status (string),必要

      條件的狀態,True、False、Unknown 之一。

    • conditions.type (string),必要

      複寫控制器條件的類型。

    • conditions.lastTransitionTime (Time)

      條件從一種狀態轉換到另一種狀態的最後時間。

      Time 是 time.Time 的包裝函式,支援正確地封送處理為 YAML 和 JSON。為 time 套件提供的許多工廠方法提供包裝函式。

    • conditions.message (string)

      關於轉換詳細資訊的人類可讀訊息。

    • conditions.reason (字串)

      條件上次轉換的原因。

  • observedGeneration (int64)

    ObservedGeneration 反映了最近觀察到的副本控制器 (replication controller) 的世代。

ReplicationControllerList

ReplicationControllerList 是副本控制器 (replication controller) 的集合。


操作 (Operations)


get 讀取指定的 ReplicationController

HTTP 請求 (HTTP Request)

GET /api/v1/namespaces/{namespace}/replicationcontrollers/{name}

參數 (Parameters)

  • name (在路徑中 (in path)): 字串, 必填

    ReplicationController 的名稱

  • namespace (在路徑中 (in path)): 字串, 必填

    命名空間 (namespace)

  • pretty (在查詢中 (in query)): 字串

    pretty

回應 (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)): 字串, 必填

    命名空間 (namespace)

  • pretty (在查詢中 (in query)): 字串

    pretty

回應 (Response)

200 (ReplicationController): 成功 (OK)

401: 未經授權 (Unauthorized)

list 列出或監看種類為 ReplicationController 的物件

HTTP 請求 (HTTP Request)

GET /api/v1/namespaces/{namespace}/replicationcontrollers

參數 (Parameters)

回應 (Response)

200 (ReplicationControllerList): 成功 (OK)

401: 未經授權 (Unauthorized)

list 列出或監看種類為 ReplicationController 的物件

HTTP 請求 (HTTP Request)

GET /api/v1/replicationcontrollers

參數 (Parameters)

  • allowWatchBookmarks (在查詢中 (in query)): 布林值 (boolean)

    allowWatchBookmarks

  • continue (在查詢中 (in query)): 字串

    continue

  • fieldSelector (在查詢中 (in query)): 字串

    fieldSelector

  • labelSelector (在查詢中 (in query)): 字串

    labelSelector

  • limit (在查詢中 (in query)): 整數 (integer)

    limit

  • pretty (在查詢中 (in query)): 字串

    pretty

  • resourceVersion (在查詢中 (in query)): 字串

    resourceVersion

  • resourceVersionMatch (在查詢中 (in query)): 字串

    resourceVersionMatch

  • sendInitialEvents (在查詢中 (in query)): 布林值 (boolean)

    sendInitialEvents

  • timeoutSeconds (在查詢中 (in query)): 整數 (integer)

    timeoutSeconds

  • watch (在查詢中 (in query)): 布林值 (boolean)

    watch

回應 (Response)

200 (ReplicationControllerList): 成功 (OK)

401: 未經授權 (Unauthorized)

create 建立 ReplicationController

HTTP 請求 (HTTP Request)

POST /api/v1/namespaces/{namespace}/replicationcontrollers

參數 (Parameters)

回應 (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)

回應 (Response)

200 (ReplicationController): 成功 (OK)

201 (ReplicationController): 已建立 (Created)

401: 未經授權 (Unauthorized)

update 取代指定 ReplicationController 的狀態

HTTP 請求 (HTTP Request)

PUT /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status

參數 (Parameters)

回應 (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)): 字串, 必填

    命名空間 (namespace)

  • body: Patch, 必填

  • dryRun (在查詢中 (in query)): 字串

    dryRun

  • fieldManager (在查詢中 (in query)): 字串

    fieldManager

  • fieldValidation (在查詢中 (in query)): 字串

    fieldValidation

  • force (在查詢中 (in query)): 布林值 (boolean)

    force

  • pretty (在查詢中 (in query)): 字串

    pretty

回應 (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)): 字串, 必填

    命名空間 (namespace)

  • body: Patch, 必填

  • dryRun (在查詢中 (in query)): 字串

    dryRun

  • fieldManager (在查詢中 (in query)): 字串

    fieldManager

  • fieldValidation (在查詢中 (in query)): 字串

    fieldValidation

  • force (在查詢中 (in query)): 布林值 (boolean)

    force

  • pretty (在查詢中 (in query)): 字串

    pretty

回應 (Response)

200 (ReplicationController): 成功 (OK)

201 (ReplicationController): 已建立 (Created)

401: 未經授權 (Unauthorized)

delete 刪除 ReplicationController

HTTP 請求 (HTTP Request)

DELETE /api/v1/namespaces/{namespace}/replicationcontrollers/{name}

參數 (Parameters)

回應 (Response)

200 (Status): 成功 (OK)

202 (Status): 已接受 (Accepted)

401: 未經授權 (Unauthorized)

deletecollection 刪除 ReplicationController 的集合

HTTP 請求 (HTTP Request)

DELETE /api/v1/namespaces/{namespace}/replicationcontrollers

參數 (Parameters)

回應 (Response)

200 (Status): 成功 (OK)

401: 未經授權 (Unauthorized)

此頁面為自動產生。

如果您計畫回報此頁面的問題,請在您的問題描述中提及此頁面為自動產生。此修正可能需要於 Kubernetes 專案的其他地方進行。

上次修改時間:2024 年 8 月 28 日下午 6:01 PST:Update generated API reference for v1.31 (8ba98c79c1)