4.3. Redfish を使用するように Kepler を設定


コンテナーを実行またはホストするためのソースとして Redfish を使用するように Kepler を設定できます。Kepler はこれらのコンテナーの電力使用量を監視できます。

前提条件

  • OpenShift Container Platform Web コンソールにアクセスできる。
  • cluster-admin ロールを持つユーザーとしてログインしている。
  • Power monitoring Operator がインストールされている。

手順

  1. Web コンソールの Administrator パースペクティブで、Operators Installed Operators の順にクリックします。
  2. Installed Operators リストから Power monitoring for Red Hat OpenShift をクリックし、Kepler タブをクリックします。
  3. Create Kepler をクリックします。Kepler インスタンスがすでに作成されている場合は、Kepler の編集 をクリックします。
  4. 必須の secretRef フィールドを指定して、Kepler インスタンスの .spec.exporter.redfish を設定します。ニーズに合わせてオプションの probeInterval フィールドと skipSSLVerify フィールドを設定することもできます。

    Kepler インスタンスの例

    Copy to Clipboard Toggle word wrap
    apiVersion: kepler.system.sustainable.computing.io/v1alpha1
    kind: Kepler
    metadata:
      name: kepler
    spec:
      exporter:
        deployment:
    # ...
        redfish:
          secretRef: <secret_name> required 
    1
    
          probeInterval: 60s 
    2
    
          skipSSLVerify: false 
    3
    
    # ...

    1
    必須: Redfish サーバーにアクセスするための認証情報を含むシークレットの名前を指定します。
    2
    オプション: Redfish から電力情報を照会する頻度を制御します。デフォルト値は 60s です。
    3
    オプション: Kepler が Redfish サーバー証明書の検証をスキップするかどうかを制御します。デフォルト値は false です。
    注記

    Kepler がデプロイされると、openshift-power-monitoring namespace 名前空間が作成されます。

  5. 次のデータ形式で redfish.csv ファイルを作成します。

    Copy to Clipboard Toggle word wrap
    <your_kubelet_node_name>,<redfish_username>,<redfish_password>,https://<redfish_ip_or_hostname>/

    redfish.csv ファイルの例

    Copy to Clipboard Toggle word wrap
    control-plane,exampleuser,examplepass,https://redfish.nodes.example.com
    worker-1,exampleuser,examplepass,https://redfish.nodes.example.com
    worker-2,exampleuser,examplepass,https://another.redfish.nodes.example.com

  6. openshift-power-monitoring namespace の下にシークレットを作成します。次の条件でシークレットを作成する必要があります。

    • シークレットタイプは Opaque です。
    • 認証情報は、シークレットの data フィールドの redfish.csv キーの下に保存されます。
    Copy to Clipboard Toggle word wrap
    $ oc -n openshift-power-monitoring \
          create secret generic redfish-secret \
          --from-file=redfish.csv

    出力例

    Copy to Clipboard Toggle word wrap
    apiVersion: v1
    kind: Secret
    metadata:
      name: redfish-secret
    data:
      redfish.csv: YmFyCg==
      # ...

    重要

    Kepler のデプロイメントは、Redfish シークレットが作成されるまで続行されません。この情報は、Kepler インスタンスの status で確認できます。

トップに戻る
Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。 最新の更新を見る.

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

Theme

© 2025 Red Hat, Inc.