复制控制器

ReplicationController 表示复制控制器的配置。

apiVersion: v1

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

复制控制器

ReplicationController 表示复制控制器的配置。


ReplicationControllerSpec

ReplicationControllerSpec 是复制控制器的规范。


ReplicationControllerStatus

ReplicationControllerStatus 表示复制控制器的当前状态。


  • replicas (int32), required

    Replicas 是最近观察到的副本数量。更多信息:https://kubernetes.ac.cn/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller

  • availableReplicas (int32)

    此复制控制器可用的副本数量(至少处于就绪状态 minReadySeconds)。

  • readyReplicas (int32)

    此复制控制器的就绪副本数量。

  • fullyLabeledReplicas (int32)

    具有与复制控制器 Pod 模板的标签匹配的标签的 Pod 数量。

  • conditions ([]ReplicationControllerCondition)

    补丁策略:在键 type 上合并

    表示复制控制器当前状态的最新可用观察结果。

    ReplicationControllerCondition 描述了复制控制器在某个时间点的状态。

    • conditions.status (string), required

      条件的状态,True、False 或 Unknown 之一。

    • conditions.type (string), required

      复制控制器条件的类型。

    • conditions.lastTransitionTime (Time)

      条件从一种状态过渡到另一种状态的最后时间。

      Time 是 time.Time 的包装器,它支持对 YAML 和 JSON 的正确编组。为 time 包提供的许多工厂方法提供了包装器。

    • conditions.message (string)

      一个可读的文本消息,指示有关过渡的详细信息。

    • conditions.reason (string)

      条件最后一次过渡的原因。

  • observedGeneration (int64)

    ObservedGeneration 反映最近观察到的复制控制器的代。

ReplicationControllerList

ReplicationControllerList 是复制控制器的集合。


操作


get 读取指定的 ReplicationController

HTTP 请求

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

参数

  • name (in path): string, required

    ReplicationController 的名称

  • namespace (in path): string, required

    命名空间

  • pretty (in query): string

    漂亮

响应

200 (ReplicationController): OK

401: 未经授权

get 读取指定 ReplicationController 的状态

HTTP 请求

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

参数

  • name (in path): string, required

    ReplicationController 的名称

  • namespace (in path): string, required

    命名空间

  • pretty (in query): string

    漂亮

响应

200 (ReplicationController): OK

401: 未经授权

list 列出或观察 ReplicationController 类型的对象

HTTP 请求

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

参数

响应

200 (ReplicationControllerList): OK

401: 未经授权

list 列出或观察 ReplicationController 类型的对象

HTTP 请求

GET /api/v1/replicationcontrollers

参数

响应

200 (ReplicationControllerList): OK

401: 未经授权

create 创建 ReplicationController

HTTP 请求

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

参数

响应

200 (ReplicationController): OK

201 (ReplicationController): 已创建

202 (ReplicationController): 已接受

401: 未经授权

update 替换指定的 ReplicationController

HTTP 请求

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

参数

响应

200 (ReplicationController): OK

201 (ReplicationController): 已创建

401: 未经授权

update 替换指定 ReplicationController 的状态

HTTP 请求

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

参数

响应

200 (ReplicationController): OK

201 (ReplicationController): 已创建

401: 未经授权

patch 部分更新指定的 ReplicationController

HTTP 请求

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

参数

  • name (in path): string, required

    ReplicationController 的名称

  • namespace (in path): string, required

    命名空间

  • body: Patch, required

  • dryRun (in query): string

    dryRun

  • fieldManager (in query): string

    fieldManager

  • fieldValidation (in query): string

    fieldValidation

  • force (in query): boolean

    强制

  • pretty (in query): string

    漂亮

响应

200 (ReplicationController): OK

201 (ReplicationController): 已创建

401: 未经授权

patch 部分更新指定 ReplicationController 的状态

HTTP 请求

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

参数

  • name (in path): string, required

    ReplicationController 的名称

  • namespace (in path): string, required

    命名空间

  • body: Patch, required

  • dryRun (in query): string

    dryRun

  • fieldManager (in query): string

    fieldManager

  • fieldValidation (in query): string

    fieldValidation

  • force (in query): boolean

    强制

  • pretty (in query): string

    漂亮

响应

200 (ReplicationController): OK

201 (ReplicationController): 已创建

401: 未经授权

delete 删除 ReplicationController

HTTP 请求

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

参数

响应

200 (Status): OK

202 (Status): 已接受

401: 未经授权

deletecollection 删除 ReplicationController 的集合

HTTP 请求

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

参数

响应

200 (Status): OK

401: 未经授权

此页面是自动生成的。

如果您打算报告此页面的问题,请在您的问题描述中提及该页面是自动生成的。修复可能需要在 Kubernetes 项目的其他地方进行。

上次修改时间:2023 年 4 月 3 日上午 8:22 PST:API Ref 多页 v1.27 (7b39e9a9ec)