19.11. ベアメタルでの支援付きインストーラーサービスの有効化

Assisted Installer Service (AIS) は、OpenShift Container Platform クラスターをデプロイします。Red Hat Advanced Cluster Management (RHACM) は AIS に同梱されています。AIS は、RHACM ハブクラスターで MultiClusterHub Operator を有効にしたときにデプロイされます。

分散ユニット (DU) の場合、RHACM は、単一のベアメタルホストで実行される OpenShift Container Platform デプロイメントをサポートします。単一ノードクラスターはコントロールプレーンとワーカーノードの両方として機能します。

前提条件

  • ハブクラスターに OpenShift Container Platform 4.9 をインストールします。
  • RHACM をインストールし、MultiClusterHub リソースを作成します。
  • データベースおよびファイルシステムストレージ用に永続ボリュームカスタムリソース (CR) を作成する。
  • OpenShift CLI (oc) がインストールされている。

手順

  1. HiveConfig リソースを変更し、アシストインストーラーの機能ゲートを有効にします。

     $ oc patch hiveconfig hive --type merge -p '{"spec":{"targetNamespace":"hive","logLevel":"debug","featureGates":{"custom":{"enabled":["AlphaAgentInstallStrategy"]},"featureSet":"Custom"}}}'
  2. Bare Metal Operator がすべての namespace を監視できるように、Provisioning リソースを変更します。

     $ oc patch provisioning provisioning-configuration --type merge -p '{"spec":{"watchAllNamespaces": true }}'
  3. AgentServiceConfig CR を作成します。

    1. 以下の YAML をagent_service_config.yaml ファイルに保存します。

      apiVersion: agent-install.openshift.io/v1beta1
      kind: AgentServiceConfig
      metadata:
       name: agent
      spec:
        databaseStorage:
          accessModes:
          - ReadWriteOnce
          resources:
            requests:
              storage: <db_volume_size> 1
        filesystemStorage:
          accessModes:
          - ReadWriteOnce
          resources:
            requests:
              storage: <fs_volume_size> 2
        osImages: 3
          - openshiftVersion: "<ocp_version>" 4
            version: "<ocp_release_version>" 5
            url: "<iso_url>" 6
            rootFSUrl: "<root_fs_url>" 7
            cpuArchitecture: "x86_64"
      1
      databaseStorage フィールドのボリュームサイズ (例: 10Gi)。
      2
      filesystemStorage フィールドのボリュームサイズ (例: 20Gi)。
      3
      OS イメージの詳細のリスト。例では、単一の OpenShift Container Platform OS バージョンについて説明します。
      4
      インストールする OpenShift Container Platform のバージョン (例: 4.8)。
      5
      特定のインストールバージョン (例: 47.83.202103251640-0
      6
      7
    2. 以下のコマンドを実行して、AgentServiceConfig CR を作成します。

      $ oc create -f agent_service_config.yaml

      出力例

      agentserviceconfig.agent-install.openshift.io/agent created