复制控制器

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 (在路径中): string, required

    ReplicationController 的名称

  • namespace (在路径中): string, required

    命名空间

  • pretty (在查询中): string

    pretty

响应

200 (ReplicationController): OK

401: Unauthorized

get 读取指定 ReplicationController 的状态

HTTP 请求

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

参数

  • name (在路径中): string, required

    ReplicationController 的名称

  • namespace (在路径中): string, required

    命名空间

  • pretty (在查询中): string

    pretty

响应

200 (ReplicationController): OK

401: Unauthorized

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

HTTP 请求

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

参数

响应

200 (ReplicationControllerList): OK

401: Unauthorized

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

HTTP 请求

GET /api/v1/replicationcontrollers

参数

响应

200 (ReplicationControllerList): OK

401: Unauthorized

create 创建一个 ReplicationController

HTTP 请求

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

参数

响应

200 (ReplicationController): OK

201 (ReplicationController): Created

202 (ReplicationController): Accepted

401: Unauthorized

update 替换指定的 ReplicationController

HTTP 请求

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

参数

响应

200 (ReplicationController): OK

201 (ReplicationController): Created

401: Unauthorized

update 替换指定 ReplicationController 的状态

HTTP 请求

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

参数

响应

200 (ReplicationController): OK

201 (ReplicationController): Created

401: Unauthorized

patch 部分更新指定的 ReplicationController

HTTP 请求

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

参数

  • name (在路径中): string, required

    ReplicationController 的名称

  • namespace (在路径中): string, required

    命名空间

  • body: Patch, required

  • dryRun (在查询中): string

    dryRun

  • fieldManager (在查询中): string

    fieldManager

  • fieldValidation (在查询中): string

    fieldValidation

  • force (在查询中): boolean

    force

  • pretty (在查询中): string

    pretty

响应

200 (ReplicationController): OK

201 (ReplicationController): Created

401: Unauthorized

patch 部分更新指定 ReplicationController 的状态

HTTP 请求

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

参数

  • name (在路径中): string, required

    ReplicationController 的名称

  • namespace (在路径中): string, required

    命名空间

  • body: Patch, required

  • dryRun (在查询中): string

    dryRun

  • fieldManager (在查询中): string

    fieldManager

  • fieldValidation (在查询中): string

    fieldValidation

  • force (在查询中): boolean

    force

  • pretty (在查询中): string

    pretty

响应

200 (ReplicationController): OK

201 (ReplicationController): Created

401: Unauthorized

delete 删除 ReplicationController

HTTP 请求

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

参数

响应

200 (Status): OK

202 (Status): Accepted

401: Unauthorized

deletecollection 删除 ReplicationController 的集合

HTTP 请求

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

参数

响应

200 (Status): OK

401: Unauthorized

此页面是自动生成的。

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

上次修改于 2023 年 4 月 3 日太平洋标准时间上午 8:22:API Ref 多页面 v1.27 (7b39e9a9ec)