OpenShift Data Science のアンインストール

Red Hat OpenShift Data Science 1

Red Hat OpenShift Cluster Manager を使用した Red Hat OpenShift Dedicated クラスターからの Red Hat OpenShift Data Science の削除

概要

Red Hat Cluster Manager を使用して、OpenShift Dedicated クラスターから Red Hat OpenShift Data Science をアンインストールします。

第1章 Amazon EBS からのストレージデータのバックアップ

Red Hat は、永続ボリューム要求 (PVC) データのバックアップを定期的に作成することを推奨しています。OpenShift Data Science をアンインストールするとすべての PVC が削除されるため、ユーザーを削除する前と、OpenShift Data Science をアンインストールする前に、データをバックアップすることが特に重要です。

前提条件

  • OpenShift Cluster Manager の認証情報 (https://console.redhat.com/openshift/) がある。
  • OpenShift Dedicated クラスターへの管理者アクセスがある。
  • OpenShift Dedicated クラスターがデプロイされている Amazon Web Services (AWS) アカウントの認証情報がある。

手順

  1. バックアップを作成する永続ボリューム (PV) の ID を確認します。

    1. OpenShift Dedicated Web コンソールで、Administrator パースペクティブに切り替えます。
    2. HomeProjects をクリックします。
    3. rhods-notebooks プロジェクトをクリックします。

      プロジェクトの Details ページが開きます。

    4. Inventory セクションの PersistentVolumeClaims をクリックします。

      PersistentVolumeClaims ページが開きます。

    5. バックアップを作成する永続ボリューム (PV) の ID を書き留めます。

      注記

      AWS インスタンスでバックアップを作成するための正しい EBS ボリュームを特定するには、書き留めた永続ボリューム (PV) が必要です。

  2. バックアップする PV が含まれる EBS ボリュームを見つけます。

    詳細は、Amazon Web Services documentation: Create Amazon EBS snapshots を参照してください。

    1. AWS (https://aws.amazon.com) にログインし、OpenShift Dedicated クラスターがデプロイされているリージョンが表示されていることを確認します。
    2. Services をクリックします。
    3. ComputeEC2 をクリックします。
    4. サイドナビゲーションで Elastic Block StorageVolumes をクリックします。

      Volumes ページが開きます。

    5. 検索バーに、前の手順で書き留めた永続ボリューム (PV) の ID を入力します。

      Volumes ページが再読み込みされ、検索結果が表示されます。

    6. 表示されているボリュームをクリックして、kubernetes.io/created-for/pvc/namespace タグに値 rhods-notebooks が含まれていること、および kubernetes.io/created-for/pvc/name タグが永続ボリュームの名前と一致していることを確認します。EC2 ボリュームは、たとえば、jupyter-nb-user1-pvc に使用されています。
  3. 永続ボリューム (PV) が含まれる EBS ボリュームのバックアップを作成します。

    1. バックアップを作成するボリュームを右クリックし、一覧から Create Snapshot を選択します。

      Create Snapshot ページが開きます。

    2. ボリュームの Description を入力します。
    3. Create Snapshot をクリックします。

      ボリュームのスナップショットが作成されます。

    4. Close をクリックします。

検証

  • 作成したスナップショットは、AWS の Snapshots ページに表示されます。

第2章 Google Persistent Disk からのストレージデータのバックアップ

Red Hat は、永続ボリューム要求 (PVC) データのバックアップを定期的に作成することを推奨しています。OpenShift Data Science をアンインストールするとすべての PVC が削除されるため、ユーザーを削除する前と、OpenShift Data Science をアンインストールする前に、データをバックアップすることが特に重要です。

前提条件

  • OpenShift Cluster Manager の認証情報 (https://console.redhat.com/openshift/) がある。
  • OpenShift Dedicated クラスターへの管理者アクセスがある。
  • OpenShift Dedicated クラスターがデプロイされている Google Cloud Platform (GCP)アカウントの認証情報がある。

手順

  1. バックアップを作成する永続ボリューム (PV) の ID を確認します。

    1. OpenShift Dedicated Web コンソールで、Administrator パースペクティブに切り替えます。
    2. HomeProjects をクリックします。
    3. rhods-notebooks プロジェクトをクリックします。

      プロジェクトの Details ページが開きます。

    4. Inventory セクションの PersistentVolumeClaims をクリックします。

      PersistentVolumeClaims ページが開きます。

    5. バックアップを作成する永続ボリューム (PV) の ID を書き留めます。

      GCP インスタンスでバックアップする正しい永続ディスクを特定するには、永続ボリューム(PV) ID が必要です。

  2. バックアップを作成する PV を含む永続ディスクを見つけます。

    1. Google Cloud コンソール (https://console.cloud.google.com) にログインし、OpenShift Dedicated クラスターがデプロイされているリージョンが表示されていることを確認します。
    2. ナビゲーションメニュー (≡) をクリックし、Compute Engine をクリックします。
    3. サイドナビゲーションの Storage で、Disks をクリックします。

      Disks ページが開きます。

    4. Filter クエリーボックスに、前の手順で書き留めた永続ボリューム(PV)の ID を入力します。

      Disks ページが再読み込みされ、検索結果が表示されます。

    5. 表示されているディスクをクリックし、kubernetes.io/created-for/pvc/namespace タグに値 rhods-notebooks が含まれていること、および kubernetes.io/created-for/pvc/name タグが永続ボリュームの名前と一致していることを確認します (例: jupyterhub-nb-user1-pvc)。
  3. 永続ボリューム (PV) が含まれる永続ディスクをバックアップします。

    1. 上部のナビゲーションから CREATE SNAPSHOT を選択します。

      Create a snapshot ページが開きます。

    2. スナップショットの一意の Name を入力します。
    3. Source disk の下に、バックアップを作成する永続ディスクが表示されることを確認します。
    4. 必要に応じて任意の設定を変更します。
    5. CREATE をクリックします。

      永続ディスクのスナップショットが作成されます。

検証

  • 作成したスナップショットは、GCP の Snapshots ページに表示されます。

第3章 OpenShift Data Science のアンインストール

Red Hat OpenShift Cluster Manager を使用して、OpenShift Dedicated クラスターから Red Hat OpenShift Data Science を安全にアンインストールできます。

前提条件

手順

  1. OpenShift Cluster Manager (https://console.redhat.com/openshift/) にログインします。
  2. Clusters をクリックします。

    Clusters ページが開きます。

  3. OpenShift Data Science インスタンスをホストするクラスターの名前をクリックし、アンインストールします。

    クラスターの Details ページが開きます。

  4. Add-ons タブをクリックし、Red Hat OpenShift Data Science カードを見つけます。
  5. Uninstall をクリックします。

    このプロセスの完了には約 30 分かかります。アンインストールプロセスで干渉する可能性があるため、OpenShift Data Science のアンインストール時にリソースを手動で削除しないでください。

    OpenShift Data Science はアンインストールされ、OpenShift Data Science インスタンスに関連付けられた永続ボリューム要求 (PVC) が削除されます。ただし、以前に作成した OpenShift Data Science ユーザーグループは、クラスター上に残ります。

検証

  • OpenShift Cluster Manager で、クラスターの Add-ons タブにある OpenShift Data Science カードに Installed 状態が表示されていないことを確認します。
  • OpenShift Dedicated で HomeProjects をクリックし、以下のプロジェクトの namespace が表示されていないことを確認します。

    • redhat-ods-applications
    • redhat-ods-monitoring
    • redhat-ods-operator

法律上の通知

Copyright © 2023 Red Hat, Inc.
The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, the Red Hat logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
Linux® is the registered trademark of Linus Torvalds in the United States and other countries.
Java® is a registered trademark of Oracle and/or its affiliates.
XFS® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries.
MySQL® is a registered trademark of MySQL AB in the United States, the European Union and other countries.
Node.js® is an official trademark of Joyent. Red Hat is not formally related to or endorsed by the official Joyent Node.js open source or commercial project.
The OpenStack® Word Mark and OpenStack logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community.
All other trademarks are the property of their respective owners.