复制控制器
apiVersion: v1
import "k8s.io/api/core/v1"
复制控制器
ReplicationController 代表复制控制器的配置。
apiVersion: v1
kind: ReplicationController
metadata (ObjectMeta)
如果 ReplicationController 的标签为空,则默认为与复制控制器管理的 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 是对应该匹配 Replicas 计数的 Pod 的标签查询。如果 Selector 为空,则默认为 Pod 模板上存在的标签。标签键和值必须匹配,以便由该复制控制器控制,如果为空,则默认为 Pod 模板上的标签。更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/labels/#label-selectors
template (PodTemplateSpec)
Template 是描述如果检测到不足的副本将创建的 Pod 的对象。这优先于 TemplateRef。唯一允许的 template.spec.restartPolicy 值是“Always”。更多信息:https://kubernetes.ac.cn/docs/concepts/workloads/controllers/replicationcontroller#pod-template
replicas (int32)
Replicas 是所需副本的数量。这是一个指针,用于区分显式零和未指定。默认为 1。更多信息:https://kubernetes.ac.cn/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller
minReadySeconds (int32)
新创建的 Pod 在其任何容器崩溃之前应处于就绪状态的最小秒数,以便将其视为可用。默认为 0(只要 Pod 处于就绪状态,就会被视为可用)。
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 是复制控制器的集合。
apiVersion: v1
kind: ReplicationControllerList
metadata (ListMeta)
标准列表元数据。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
items ([]ReplicationController), required
复制控制器的列表。更多信息:https://kubernetes.ac.cn/docs/concepts/workloads/controllers/replicationcontroller
操作
get
读取指定的 ReplicationController
HTTP 请求
GET /api/v1/namespaces/{namespace}/replicationcontrollers/{name}
参数
name (在路径中): string, required
ReplicationController 的名称
namespace (在路径中): string, required
pretty (在查询中): string
响应
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
响应
200 (ReplicationController): OK
401: Unauthorized
list
列出或观察 ReplicationController 类型的对象
HTTP 请求
GET /api/v1/namespaces/{namespace}/replicationcontrollers
参数
namespace (在路径中): string, required
allowWatchBookmarks (在查询中): boolean
continue (在查询中): string
fieldSelector (在查询中): string
labelSelector (在查询中): string
limit (在查询中): integer
pretty (在查询中): string
resourceVersion (在查询中): string
resourceVersionMatch (在查询中): string
sendInitialEvents (在查询中): boolean
timeoutSeconds (在查询中): integer
watch (在查询中): boolean
响应
200 (ReplicationControllerList): OK
401: Unauthorized
list
列出或观察 ReplicationController 类型的对象
HTTP 请求
GET /api/v1/replicationcontrollers
参数
allowWatchBookmarks (在查询中): boolean
continue (在查询中): string
fieldSelector (在查询中): string
labelSelector (在查询中): string
limit (在查询中): integer
pretty (在查询中): string
resourceVersion (在查询中): string
resourceVersionMatch (在查询中): string
sendInitialEvents (在查询中): boolean
timeoutSeconds (在查询中): integer
watch (在查询中): boolean
响应
200 (ReplicationControllerList): OK
401: Unauthorized
create
创建一个 ReplicationController
HTTP 请求
POST /api/v1/namespaces/{namespace}/replicationcontrollers
参数
namespace (在路径中): string, required
body: ReplicationController, required
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
pretty (在查询中): string
响应
200 (ReplicationController): OK
201 (ReplicationController): Created
202 (ReplicationController): Accepted
401: Unauthorized
update
替换指定的 ReplicationController
HTTP 请求
PUT /api/v1/namespaces/{namespace}/replicationcontrollers/{name}
参数
name (在路径中): string, required
ReplicationController 的名称
namespace (在路径中): string, required
body: ReplicationController, required
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
pretty (在查询中): string
响应
200 (ReplicationController): OK
201 (ReplicationController): Created
401: Unauthorized
update
替换指定 ReplicationController 的状态
HTTP 请求
PUT /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status
参数
name (在路径中): string, required
ReplicationController 的名称
namespace (在路径中): string, required
body: ReplicationController, required
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
pretty (在查询中): string
响应
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
fieldManager (在查询中): string
fieldValidation (在查询中): string
force (在查询中): boolean
pretty (在查询中): string
响应
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
fieldManager (在查询中): string
fieldValidation (在查询中): string
force (在查询中): boolean
pretty (在查询中): string
响应
200 (ReplicationController): OK
201 (ReplicationController): Created
401: Unauthorized
delete
删除 ReplicationController
HTTP 请求
DELETE /api/v1/namespaces/{namespace}/replicationcontrollers/{name}
参数
name (在路径中): string, required
ReplicationController 的名称
namespace (在路径中): string, required
body: DeleteOptions
dryRun (在查询中): string
gracePeriodSeconds (在查询中): integer
pretty (在查询中): string
propagationPolicy (在查询中): string
响应
200 (Status): OK
202 (Status): Accepted
401: Unauthorized
deletecollection
删除 ReplicationController 的集合
HTTP 请求
DELETE /api/v1/namespaces/{namespace}/replicationcontrollers
参数
namespace (在路径中): string, required
body: DeleteOptions
continue (在查询中): string
dryRun (在查询中): string
fieldSelector (在查询中): string
gracePeriodSeconds (在查询中): integer
labelSelector (在查询中): string
limit (在查询中): integer
pretty (在查询中): string
propagationPolicy (在查询中): string
resourceVersion (在查询中): string
resourceVersionMatch (在查询中): string
sendInitialEvents (在查询中): boolean
timeoutSeconds (在查询中): integer
响应
200 (Status): OK
401: Unauthorized
此页面是自动生成的。
如果您打算报告此页面的问题,请在您的问题描述中提及该页面是自动生成的。修复可能需要在 Kubernetes 项目的其他地方进行。