7.6. MTC のアンインストールおよびリソースの削除
Migration Toolkit for Containers (MTC) をアンインストールし、そのリソースを削除してクラスターをクリーンアップできます。
velero CRD を削除すると、Velero がクラスターから削除されます。
前提条件
-
cluster-admin権限を持つユーザーとしてログインしている。
手順
すべてのクラスターで
MigrationControllerカスタムリソース (CR) を削除します。$ oc delete migrationcontroller <migration_controller>- Operator Lifecycle Manager を使用して OpenShift Container Platform 4 の Migration Toolkit for Containers Operator をアンインストールします。
以下のコマンドを実行して、すべてのクラスターでクラスタースコープのリソースを削除します。
migrationカスタムリソース定義 (CRDs):$ oc delete $(oc get crds -o name | grep 'migration.openshift.io')VeleroCRD:$ oc delete $(oc get crds -o name | grep 'velero')migrationクラスターロール:$ oc delete $(oc get clusterroles -o name | grep 'migration.openshift.io')migration-operatorクラスターロール:$ oc delete clusterrole migration-operatorVeleroクラスターロール:$ oc delete $(oc get clusterroles -o name | grep 'velero')migrationクラスターのロールバインディング:$ oc delete $(oc get clusterrolebindings -o name | grep 'migration.openshift.io')migration-operatorクラスターロールバインディング:$ oc delete clusterrolebindings migration-operatorVeleroクラスターのロールバインディング:$ oc delete $(oc get clusterrolebindings -o name | grep 'velero')