卸载 OpenShift Data Science Self-managed

Red Hat OpenShift Data Science Self-managed 1.29

使用 OpenShift CLI 从 Red Hat OpenShift Container Platorm 集群中删除 Red Hat OpenShift Data Science Self-managed

摘要

使用 OpenShift CLI 从 OpenShift Container Platform 集群卸载 Red Hat OpenShift Data Science Self-managed。

第 1 章 对红帽文档提供反馈

让红帽知道我们如何改进文档。您可以按照以下步骤直接从文档页面中提供反馈。

  1. 确保您已登录到客户门户网站。
  2. 确保您正在查看本文档的 Multi-page HTML 格式。
  3. 突出显示您要提供反馈的文本。此时会出现添加反馈 提示。
  4. 添加反馈
  5. 反馈文本框中输入您的意见,然后点提交
重要

有些广告阻塞程序可能会让您无法提供有关红帽文档的反馈。如果因为启用了广告阻塞程序而无法提供反馈意见,请考虑在 Web 浏览器中禁用您的广告阻塞程序。有关如何禁用您的广告阻塞程序的更多信息,请参阅您的网页浏览器文档。

每次提交反馈时,红帽都会自动创建跟踪问题。在点 Submit 并开始监控问题后,打开链接,或添加更多评论以向我们提供有关该问题的更多信息。

感谢您抽出时间为您提供反馈。

第 2 章 卸载 OpenShift Data Science Self-managed

您可以使用 Red Hat OpenShift CLI (oc)从 OpenShift Container Platform 集群安全地卸载 Red Hat OpenShift Data Science Self-managed。当使用 Web 控制台卸载 Red Hat OpenShift Data Science Self-managed 时,只删除 Operator。因此,其他 OpenShift Data Science 组件不会被卸载,使集群处于不一致的状态。要避免这种情况,请使用 Red Hat OpenShift CLI (oc)从 OpenShift Container Platform 集群卸载 Red Hat OpenShift Data Science Self-managed。

先决条件

  • 您可以使用具有 cluster-admin 权限的账户访问 OpenShift 集群。
  • 已安装 OpenShift CLI(oc)。
  • 您已备份了包含持久性卷声明(PVC)的持久性卷。

流程

  1. 通过 CLI 登录 OpenShift Container Platform。
  2. 创建 ConfigMap 以删除 Red Hat OpenShift Data Science Operator:

    oc create configmap delete-self-managed-odh -n redhat-ods-operator
  3. 要删除 rhods-operator,请将 addon-managed-odh-delete 标签设置为 true

    oc label configmap/delete-self-managed-odh api.openshift.com/addon-managed-odh-delete=true -n redhat-ods-operator
  4. 删除所有对象后,删除 redhat-ods-operator 命名空间:

    1. 设置要检查的项目名称:

      PROJECT_NAME=redhat-ods-applications
    2. 继续检查,直到项目不再存在:

      while oc get project $PROJECT_NAME &> /dev/null; do
        echo "$PROJECT_NAME still exists"
        sleep 1
      done
      echo "$PROJECT_NAME no longer exists"
    3. 删除 redhat-ods-operator 命名空间:

      oc delete namespace redhat-ods-operator

验证

  • 确认 rhods-operator 不再存在:

    oc get subscriptions --all-namespaces | grep rhods-operator
  • 确认以下项目命名空间不再存在:

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

      oc get namespaces | grep redhat-ods*

第 3 章 其他资源

法律通告

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.