ComponentStatus

ComponentStatus(以及 ComponentStatusList)包含集群验证信息。

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)

    Patch 策略:根据键 type 进行合并

    映射:合并期间将保留键 type 上的唯一值

    已观察到的组件状态列表

    关于组件状态的信息。

    • conditions.status (string), 必需

      组件的状态。 "Healthy" 的有效值为:"True"、"False" 或 "Unknown"。

    • conditions.type (string), 必需

      组件的状态类型。 有效值:"Healthy"

    • conditions.error (string)

      组件的状态错误码。 例如,健康检查错误码。

    • conditions.message (string)

      关于组件状态的消息。 例如,关于健康检查的信息。

ComponentStatusList

组件的所有状态作为 ComponentStatus 对象列表。 已废弃: 此 API 在 v1.19+ 版本中已废弃。


操作


get 读取指定的 ComponentStatus

HTTP 请求

GET /api/v1/componentstatuses/{name}

参数

  • name (在路径中): string, 必需

    ComponentStatus 的名称

  • pretty (在查询参数中): string

    pretty

响应

200 (ComponentStatus): OK

401: 未授权

list 列出 kind 为 ComponentStatus 的对象

HTTP 请求

GET /api/v1/componentstatuses

参数

响应

200 (ComponentStatusList): OK

401: 未授权

本页面是自动生成的。

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

最后修改于 2024 年 8 月 28 日下午 6:01 PST: 更新生成的 API 参考文档,针对 v1.31 (8ba98c79c1)