apiVersion: apps/v1
import "k8s.io/api/apps/v1"
ReplicaSet 确保在任何给定时间都有指定数量的 Pod 副本在运行。
apiVersion: apps/v1
kind: ReplicaSet
metadata (ObjectMeta)
如果 ReplicaSet 的标签(Labels)为空,它们将默认与该 ReplicaSet 所管理的 Pod 的标签相同。标准对象的元数据。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
spec (ReplicaSetSpec)
Spec 定义了 ReplicaSet 期望行为的规范。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
status (ReplicaSetStatus)
Status 是最近观察到的 ReplicaSet 状态。此数据可能在一段时间内过时。由系统填充。只读。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
ReplicaSetSpec 是 ReplicaSet 的规范。
selector (LabelSelector), 必需
Selector 是针对 Pod 的标签查询,用于匹配副本计数。为了由该 ReplicaSet 控制,必须匹配的标签键和值。它必须与 Pod 模板的标签相匹配。更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/labels/#label-selectors
template (PodTemplateSpec)
Template 是描述 Pod 的对象,如果检测到副本不足,将创建该 Pod。更多信息:https://kubernetes.ac.cn/docs/concepts/workloads/controllers/replicaset/#pod-template
replicas (int32)
Replicas 是期望的 Pod 数量。这是一个指针,用于区分显式的零值和未指定。默认为 1。更多信息:https://kubernetes.ac.cn/docs/concepts/workloads/controllers/replicaset
minReadySeconds (int32)
新创建的 Pod 在其任何容器崩溃之前,应该就绪的最短秒数,才能被认为可用。默认值为 0(Pod 只要就绪就会被认为可用)
ReplicaSetStatus 表示 ReplicaSet 的当前状态。
replicas (int32), required
Replicas 是最近观察到的非终止 Pod 的数量。更多信息:https://kubernetes.ac.cn/docs/concepts/workloads/controllers/replicaset
availableReplicas (int32)
此 ReplicaSet 中处于可用状态的非终止 Pod 数量(至少就绪了 minReadySeconds 秒)。
readyReplicas (int32)
此 ReplicaSet 目标中具有 Ready 状态的非终止 Pod 数量。
terminatingReplicas (int32)
此副本集的终止中的 Pod 数量。处于终止中的 Pod 具有非 null 的 .metadata.deletionTimestamp,且尚未达到 Failed 或 Succeeded 的 .status.phase 阶段。
这是一个 Beta 字段,需要启用 DeploymentReplicaSetTerminatingReplicas 功能(默认启用)。
fullyLabeledReplicas (int32)
标签与副本集 Pod 模板标签匹配的非终止 Pod 数量。
conditions ([]ReplicaSetCondition)
Patch 策略:在键 type 上合并
映射:在合并期间将保留键类型上的唯一值
表示关于副本集当前状态的最新可用观察结果。
ReplicaSetCondition 描述了副本集在某个时间点的状态。
conditions.status (string), required
条件的状态,为 True、False 或 Unknown 之一。
conditions.type (string), required
副本集条件类型。
conditions.lastTransitionTime (Time)
条件从一种状态转换到另一种状态的最后一次时间。
Time 是 time.Time 的包装器,支持正确地编组到 YAML 和 JSON。为时间包提供的许多工厂方法提供包装器。
conditions.message (string)
指示过渡细节的人类可读消息。
conditions.reason (string)
条件最后一次过渡的原因。
observedGeneration (int64)
ObservedGeneration 反映了最近观察到的 ReplicaSet 的生成版本。
ReplicaSetList 是 ReplicaSet 的集合。
apiVersion: apps/v1
kind: ReplicaSetList
metadata (ListMeta)
标准列表元数据。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
items ([]ReplicaSet),必需
ReplicaSet 列表。更多信息:https://kubernetes.ac.cn/docs/concepts/workloads/controllers/replicaset
get 读取指定的 ReplicaSetGET /apis/apps/v1/namespaces/{namespace}/replicasets/{name}
200 (ReplicaSet): OK
401: 未授权
get 读取指定 ReplicaSet 的状态GET /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status
200 (ReplicaSet): OK
401: 未授权
list 列出或监视 ReplicaSet 类型的对象GET /apis/apps/v1/namespaces/{namespace}/replicasets
namespace (在路径中): string, 必需
allowWatchBookmarks (in query): boolean
continue (in query): string
fieldSelector (in query): string
labelSelector (in query): string
limit (in query): integer
pretty (在查询中): string
resourceVersion (in query): string
resourceVersionMatch (in query): string
sendInitialEvents (in query): boolean
timeoutSeconds (in query): integer
watch (in query): boolean
200 (ReplicaSetList): OK
401: 未授权
list 列出或监视 ReplicaSet 类型的对象GET /apis/apps/v1/replicasets
allowWatchBookmarks (in query): boolean
continue (in query): string
fieldSelector (in query): string
labelSelector (in query): string
limit (in query): integer
pretty (在查询中): string
resourceVersion (in query): string
resourceVersionMatch (in query): string
sendInitialEvents (in query): boolean
timeoutSeconds (in query): integer
watch (in query): boolean
200 (ReplicaSetList): OK
401: 未授权
create 创建一个 ReplicaSetPOST /apis/apps/v1/namespaces/{namespace}/replicasets
namespace (在路径中): string, 必需
body: ReplicaSet,必需
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
pretty (在查询中): string
200 (ReplicaSet): OK
201 (ReplicaSet): Created
202 (ReplicaSet): Accepted
401: 未授权
update 替换指定的 ReplicaSetPUT /apis/apps/v1/namespaces/{namespace}/replicasets/{name}
name (在路径中): string, 必需
ReplicaSet 的名称
namespace (在路径中): string, 必需
body: ReplicaSet,必需
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
pretty (在查询中): string
200 (ReplicaSet): OK
201 (ReplicaSet): Created
401: 未授权
update 替换指定 ReplicaSet 的状态PUT /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status
name (在路径中): string, 必需
ReplicaSet 的名称
namespace (在路径中): string, 必需
body: ReplicaSet,必需
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
pretty (在查询中): string
200 (ReplicaSet): OK
201 (ReplicaSet): Created
401: 未授权
patch 部分更新指定的 ReplicaSetPATCH /apis/apps/v1/namespaces/{namespace}/replicasets/{name}
name (在路径中): string, 必需
ReplicaSet 的名称
namespace (在路径中): string, 必需
body: Patch, 必需
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
force (in query): boolean
pretty (在查询中): string
200 (ReplicaSet): OK
201 (ReplicaSet): Created
401: 未授权
patch 部分更新指定 ReplicaSet 的状态PATCH /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status
name (在路径中): string, 必需
ReplicaSet 的名称
namespace (在路径中): string, 必需
body: Patch, 必需
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
force (in query): boolean
pretty (在查询中): string
200 (ReplicaSet): OK
201 (ReplicaSet): Created
401: 未授权
delete 删除一个 ReplicaSetDELETE /apis/apps/v1/namespaces/{namespace}/replicasets/{name}
name (在路径中): string, 必需
ReplicaSet 的名称
namespace (在路径中): string, 必需
body: DeleteOptions
dryRun (在查询中): string
gracePeriodSeconds (in query): integer
ignoreStoreReadErrorWithClusterBreakingPotential (in query): boolean
pretty (在查询中): string
propagationPolicy (in query): string
200 (Status): 确定
202 (Status): 已接受
401: 未授权
deletecollection 删除 ReplicaSet 集合DELETE /apis/apps/v1/namespaces/{namespace}/replicasets
namespace (在路径中): string, 必需
body: DeleteOptions
continue (in query): string
dryRun (在查询中): string
fieldSelector (in query): string
gracePeriodSeconds (in query): integer
ignoreStoreReadErrorWithClusterBreakingPotential (in query): boolean
labelSelector (in query): string
limit (in query): integer
pretty (在查询中): string
propagationPolicy (in query): string
resourceVersion (in query): string
resourceVersionMatch (in query): string
sendInitialEvents (in query): boolean
timeoutSeconds (in query): integer
200 (Status): 确定
401: 未授权
本页面是自动生成的。
如果您打算报告此页面的问题,请在您的问题描述中提及该页面是自动生成的。修复可能需要在 Kubernetes 项目的其他地方进行。