4.2. Kepler のステータスの監視
Kepler
リソースの status
フィールドを使用すると、Kepler エクスポーターの状態を監視できます。
status.exporter
フィールドには、次のような情報が含まれています。
- 現在 Kepler Pod を実行しているノードの数
- Kepler Pod を実行する必要があるノードの数
- Kepler リソースの健全性を表す条件
これにより、spec
フィールドを通じて行った変更に関する貴重な情報が得られます。
Kepler
リソースの状態の例
apiVersion: kepler.system.sustainable.computing.io/v1alpha1 kind: Kepler metadata: name: kepler status: exporter: conditions: - lastTransitionTime: '2024-01-11T11:07:39Z' message: Reconcile succeeded observedGeneration: 1 reason: ReconcileSuccess status: 'True' type: Reconciled - lastTransitionTime: '2024-01-11T11:07:39Z' message: >- Kepler daemonset "kepler-operator/kepler" is deployed to all nodes and available; ready 2/2 observedGeneration: 1 reason: DaemonSetReady status: 'True' type: Available currentNumberScheduled: 2 desiredNumberScheduled: 2
apiVersion: kepler.system.sustainable.computing.io/v1alpha1
kind: Kepler
metadata:
name: kepler
status:
exporter:
conditions:
- lastTransitionTime: '2024-01-11T11:07:39Z'
message: Reconcile succeeded
observedGeneration: 1
reason: ReconcileSuccess
status: 'True'
type: Reconciled
- lastTransitionTime: '2024-01-11T11:07:39Z'
message: >-
Kepler daemonset "kepler-operator/kepler" is deployed to all nodes and
available; ready 2/2
observedGeneration: 1
reason: DaemonSetReady
status: 'True'
type: Available
currentNumberScheduled: 2
desiredNumberScheduled: 2