This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.1.4. クラスターアプリケーション移行ツールのデプロイおよびアップグレード
Cluster Application Migration Operator を OpenShift Container Platform 4.4 ターゲットクラスターおよび OpenShift Container Platform 3 ソースクラスターにインストールできます。Cluster Application Migration Operator は、デフォルトで Cluster Application Migration (CAM) ツールをターゲットクラスターにインストールします。
オプション: Cluster Application Migration Operator を、CAM ツールを OpenShift Container Platform 3 クラスターまたはリモートクラスターに インストールするように設定できます。
制限された環境では、ローカルミラーレジストリーから Cluster Application Migration Operator をインストールできます。
クラスターに Cluster Application Migration Operator をインストールした後に、CAM ツールを起動できます。
1.4.1. Cluster Application Migration Operator のインストール リンクのコピーリンクがクリップボードにコピーされました!
Cluster Application Migration Operator は Operator Lifecycle Manager (OLM) で OpenShift Container Platform 4.4 ターゲットクラスターにインストールすることも、手動で OpenShift Container Platform 3 ソースクラスターにインストールすることもできます。
1.4.1.1. Cluster Application Migration Operator の OpenShift Container Platform 4.4 ターゲットクラスターへのインストール リンクのコピーリンクがクリップボードにコピーされました!
Operator Lifecycle Manager (OLM) を使用して OpenShift Container Platform 4.4 ターゲットクラスターに Cluster Application Migration Operator をインストールできます。
Cluster Application Migration Operator は、デフォルトで Cluster Application Migration ツールをターゲットクラスターにインストールします。
手順
-
OpenShift Container Platform Web コンソールで、Operators
OperatorHub をクリックします。 -
Filter by keyword フィールド (この場合は
Migration
) を使用して Cluster Application Migration Operator を見つけます。 - Cluster Application Migration Operator を選択し、Install をクリックします。
Create Operator Subscription ページで、Subscribe をクリックします。
Installed Operators ページで、Cluster Application Migration Operator は、Succeeded のステータスで openshift-migration プロジェクトに表示されます。
- Cluster Application Migration Operator をクリックします。
- Provided APIs の下で Migration Controller タイルを見つけ、Create Instance をクリックします。
- Create をクリックします。
-
Workloads
Pods をクリックし、Controller Manager、Migration UI、Restic、および Velero Pod が実行中であることを確認します。
1.4.1.2. OpenShift Container Platform 3 ソースクラスターへの Cluster Application Migration Operator のインストール リンクのコピーリンクがクリップボードにコピーされました!
Cluster Application Migration Operator を手動で OpenShift Container Platform 3 ソースクラスターにインストールできます。
前提条件
-
registry.redhat.io
へのアクセス イメージを
registry.redhat.io
からプルするように設定された OpenShift Container Platform 3 クラスターイメージをプルするには、
imagestreamsecret
を作成し、これをクラスター内の各ノードにコピーする必要があります。
手順
Red Hat カスタマーポータルの認証情報を使用して
registry.redhat.io
にログインします。sudo podman login registry.redhat.io
$ sudo podman login registry.redhat.io
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 注記システムがルートレス Podman コンテナー用に設定されている場合は、この手順に
sudo
は必要ありません。operator.yml
ファイルをダウンロードします。sudo podman cp $(sudo podman create registry.redhat.io/rhcam-1-2/openshift-migration-rhel7-operator:v1.2):/operator.yml ./
$ sudo podman cp $(sudo podman create registry.redhat.io/rhcam-1-2/openshift-migration-rhel7-operator:v1.2):/operator.yml ./
Copy to Clipboard Copied! Toggle word wrap Toggle overflow controller-3.yml
ファイルをダウンロードします。sudo podman cp $(sudo podman create registry.redhat.io/rhcam-1-2/openshift-migration-rhel7-operator:v1.2):/controller-3.yml ./
$ sudo podman cp $(sudo podman create registry.redhat.io/rhcam-1-2/openshift-migration-rhel7-operator:v1.2):/controller-3.yml ./
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - OpenShift Container Platform 3 クラスターにログインします。
クラスターが
registry.redhat.io
で認証できることを確認します。oc run test --image registry.redhat.io/ubi8 --command sleep infinity
$ oc run test --image registry.redhat.io/ubi8 --command sleep infinity
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Cluster Application Migration Operator CR オブジェクトを作成します。
oc create -f operator.yml
$ oc create -f operator.yml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 出力は以下のようになります。
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 1
Error from server (AlreadyExists)
メッセージは無視できます。これらは、Cluster Applicatino Migration Operator が以降のリリースで提供されるリリースを OpenShift Container Platform 3 の以前のバージョン用に作成することによって生じます。
Migration コントローラー CR オブジェクトを作成します。
oc create -f controller-3.yml
$ oc create -f controller-3.yml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Velero および Restic Pod が実行されていることを確認します。
oc get pods -n openshift-migration
$ oc get pods -n openshift-migration
Copy to Clipboard Copied! Toggle word wrap Toggle overflow