×
描述

ComponentStatus(和ComponentStatusList)保存集群验证信息。已弃用:此API在v1.19+中已弃用。

类型

对象

规格

属性 类型 描述

apiVersion

字符串

APIVersion 定义了此对象表示的版本化模式。服务器应将识别的模式转换为最新的内部值,并可能拒绝无法识别的值。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

条件

数组

观察到的组件条件列表

conditions[]

对象

有关组件条件的信息。

种类

字符串

Kind 是一个字符串值,表示此对象表示的 REST 资源。服务器可以从客户端提交请求的端点推断出这一点。不可更新。使用驼峰命名法。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

元数据

ObjectMeta

标准对象的元数据。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata

.conditions

描述

观察到的组件条件列表

类型

数组

.conditions[]

描述

有关组件条件的信息。

类型

对象

必需
  • 类型

  • 状态

属性 类型 描述

错误

字符串

组件的条件错误代码。例如,健康检查错误代码。

消息

字符串

有关组件条件的消息。例如,有关健康检查的信息。

状态

字符串

组件条件的状态。“健康”的有效值为:“True”、“False”或“Unknown”。

类型

字符串

组件的条件类型。有效值:“Healthy”

API 端点

提供以下 API 端点

  • /api/v1/componentstatuses

    • GET:列出 ComponentStatus 类型的对象

  • /api/v1/componentstatuses/{name}

    • GET:读取指定的 ComponentStatus

/api/v1/componentstatuses

HTTP 方法

GET

描述

列出 ComponentStatus 类型的对象

表 1. HTTP 响应
HTTP 代码 响应体

200 - OK

ComponentStatusList 模式

401 - 未授权

/api/v1/componentstatuses/{name}

表 2. 全局路径参数
参数 类型 描述

name

字符串

ComponentStatus 的名称

HTTP 方法

GET

描述

读取指定的 ComponentStatus

表 3. HTTP 响应
HTTP 代码 响应体

200 - OK

ComponentStatus 模式

401 - 未授权