2.4.5.4. VMware vCenter のリージョンとゾーンの設定


デフォルトのインストール設定ファイルを変更して、OpenShift Container Platform クラスターを複数の vSphere データセンターにデプロイできます。

OpenShift Container Platform の以前のリリースのデフォルトの install-config.yaml ファイル設定は非推奨になりました。非推奨のデフォルト設定を引き続き使用できますが、openshift-installer により、設定ファイル内の非推奨のフィールドの使用を示す警告メッセージが表示されます。

前提条件

  • 既存の install-config.yaml インストール設定ファイルがある。

    重要

    VMware vCenter Server のデータセンターオブジェクトをプロビジョニングできるように、OpenShift Container Platform クラスターに少なくとも 1 つの障害ドメインを指定する必要があります。異なるデータセンター、クラスター、データストア、その他のコンポーネントに仮想マシンノードをプロビジョニングする必要がある場合は、複数の障害ドメインを指定することを検討してください。リージョンとゾーンを有効にするには、OpenShift Container Platform クラスターに複数の障害ドメインを定義する必要があります。

  • govc コマンドラインツールがインストールされている。

    重要

    この例では、govc コマンドを使用します。govc コマンドは、VMware から入手できるオープンソースコマンドです。Red Hat からは入手できません。Red Hat サポートチームは govc コマンドを保守していません。govc のダウンロードおよびインストール手順は、VMware ドキュメントの Web サイトを参照してください。

手順

  1. 次のコマンドを実行して、openshift-region および openshift-zone vCenter タグカテゴリーを作成します。

    重要

    openshift-region および openshift-zone vCenter タグカテゴリーに異なる名前を指定すると、OpenShift Container Platform クラスターのインストールは失敗します。

    $ govc tags.category.create -d "OpenShift region" openshift-region
    $ govc tags.category.create -d "OpenShift zone" openshift-zone
  2. クラスターをデプロイするリージョンごとに、次のコマンドを実行してリージョンタグを作成します。

    $ govc tags.create -c <region_tag_category> <region_tag>
  3. クラスターをデプロイするゾーンごとに、次のコマンドを実行してゾーンタグを作成します。

    $ govc tags.create -c <zone_tag_category> <zone_tag>
  4. 次のコマンドを実行して、vCenter データセンターオブジごとにリージョンタグをアタッチします。

    $ govc tags.attach -c <region_tag_category> <region_tag_1> /<data_center_1>
  5. 次のコマンドを実行して、vCenter クラスターオブジェクトごとにゾーンタグをアタッチします。

    $ govc tags.attach -c <zone_tag_category> <zone_tag_1> /<data_center_1>/host/<cluster1>
  6. インストールプログラムが含まれるディレクトリーに移動し、選択したインストール要件に従ってクラスターデプロイメントを初期化します。

    vSphere センターで定義された複数のデータセンターを含むサンプル install-config.yaml ファイル

    # ...
    compute:
    ---
      vsphere:
          zones:
            - "<machine_pool_zone_1>"
            - "<machine_pool_zone_2>"
    # ...
    controlPlane:
    # ...
    vsphere:
          zones:
            - "<machine_pool_zone_1>"
            - "<machine_pool_zone_2>"
    # ...
    platform:
      vsphere:
        vcenters:
    # ...
        datacenters:
          - <data_center_1_name>
          - <data_center_2_name>
        failureDomains:
        - name: <machine_pool_zone_1>
          region: <region_tag_1>
          zone: <zone_tag_1>
          server: <fully_qualified_domain_name>
          topology:
            datacenter: <data_center_1>
            computeCluster: "/<data_center_1>/host/<cluster1>"
            networks:
            - <VM_Network1_name>
            datastore: "/<data_center_1>/datastore/<datastore1>"
            resourcePool: "/<data_center_1>/host/<cluster1>/Resources/<resourcePool1>"
            folder: "/<data_center_1>/vm/<folder1>"
        - name: <machine_pool_zone_2>
          region: <region_tag_2>
          zone: <zone_tag_2>
          server: <fully_qualified_domain_name>
          topology:
            datacenter: <data_center_2>
            computeCluster: "/<data_center_2>/host/<cluster2>"
            networks:
            - <VM_Network2_name>
            datastore: "/<data_center_2>/datastore/<datastore2>"
            resourcePool: "/<data_center_2>/host/<cluster2>/Resources/<resourcePool2>"
            folder: "/<data_center_2>/vm/<folder2>"
    # ...

Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

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

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

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

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

会社概要

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

Theme

© 2026 Red Hat
トップに戻る