此文档中的信息可能已过时
此文档的更新日期比原文晚,因此其中的信息可能已过时。如果能阅读英文,请查看英文版本以获取最新信息: ComponentStatus
ComponentStatus
apiVersion: v1
import "k8s.io/api/core/v1"
ComponentStatus
ComponentStatus(和 ComponentStatusList)保存集群检验信息。 已废弃:该 API 在 v1.19 及更高版本中废弃。
- 
apiVersion: v1 
- 
kind: ComponentStatus 
- 
metadata (ObjectMeta) 标准的对象元数据。更多信息: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata 
- 
conditions ([]ComponentCondition) 补丁策略:基于键 type合并Map:合并期间根据键 type 保留其唯一值 观测到的组件状况的列表。 - 
conditions.status (string),必需 组件状况的状态。“Healthy” 的有效值为:“True”、“False” 或 “Unknown”。 
 - conditions.type (string),必需
 组件状况的类型。有效值:“Healthy” - 
conditions.error (string) 组件状况的错误码。例如,一个健康检查错误码。 
- 
conditions.message (string) 组件状况相关消息。例如,有关健康检查的信息。 
 
- 
ComponentStatusList
作为 ComponentStatus 对象列表,所有组件状况的状态。 已废弃:该 API 在 v1.19 及更高版本中废弃。
- 
apiVersion: v1 
- 
kind: ComponentStatusList 
- 
metadata (ListMeta) 标准的对象元数据。更多信息: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds 
- 
items ([]ComponentStatus),必需 ComponentStatus 对象的列表。 
操作
get 读取指定的 ComponentStatus
HTTP 请求
GET /api/v1/componentstatuses/{name}
参数
- 
name(路径参数):string,必需 ComponentStatus 的名称。 
- 
pretty(查询参数):string 
响应
200 (ComponentStatus): OK
401: Unauthorized
list 列出 ComponentStatus 类别的对象
HTTP 请求
GET /api/v1/componentstatuses
参数
- 
allowWatchBookmarks(查询参数):boolean 
- 
continue(查询参数):string 
- 
fieldSelector(查询参数):string 
- 
labelSelector(查询参数):string 
- 
limit(查询参数):integer 
- 
pretty(查询参数):string 
- 
resourceVersion(查询参数):string 
- 
resourceVersionMatch(查询参数):string 
- 
sendInitialEvents(查询参数):boolean 
- 
timeoutSeconds(查询参数):integer 
- 
watch(查询参数):boolean 
响应
200 (ComponentStatusList): OK
401: Unauthorized