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)

    補丁策略:按鍵 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 列出 ComponentStatus 型別的物件

HTTP 請求

GET /api/v1/componentstatuses

引數

響應

200 (ComponentStatusList): OK

401: 未授權

本頁面是自動生成的。

如果你打算報告此頁面存在的問題,請在問題描述中提及此頁面是自動生成的。修復可能需要在 Kubernetes 專案的其他地方進行。

上次修改時間:2024年8月28日太平洋標準時間下午6:01:更新了v1.31的生成的API參考 (8ba98c79c1)