4.2. 构建 RStudio 服务器工作台镜像
RStudio Server 和 CUDA - RStudio Server workbench 镜像目前在 Red Hat OpenShift AI 中作为技术预览功能提供。
当前在断开连接的环境中,RStudio Server workbench 镜像当前不可用。
技术预览功能不受红帽产品服务等级协议(SLA)支持,且功能可能并不完整。红帽不推荐在生产环境中使用它们。这些技术预览功能可以使用户提早试用新的功能,并有机会在开发阶段提供反馈意见。
有关红帽技术预览功能支持范围的更多信息,请参阅技术预览功能支持范围。
Red Hat OpenShift AI 包括以下 RStudio Server workbench 镜像:
RStudio Server workbench 镜像
使用 RStudio Server workbench 镜像,您可以访问 RStudio IDE,这是 R 编程语言的集成开发环境。R 用于统计计算和图形来支持数据分析和预测。
重要免责声明: 红帽支持在 OpenShift AI 中管理工作台。但是,红帽不为 RStudio 软件提供支持。RStudio 服务器可以通过 r Studio.org 提供,并遵循其许可条款。在使用此示例工作台前,您应该查看其许可条款。
CUDA - RStudio Server workbench 镜像
使用 CUDA - RStudio Server workbench 镜像,您可以访问 RStudio IDE 和 NVIDIA CUDA Toolkit。RStudio IDE 是用于统计计算和图形的 R 编程语言的集成开发环境。使用 NVIDIA CUDA 工具包,您可以使用 GPU 加速的库和优化工具来增强您的工作。
重要免责声明: 红帽支持在 OpenShift AI 中管理工作台。但是,红帽不为 RStudio 软件提供支持。RStudio 服务器可以通过 r Studio.org 提供,并遵循其许可条款。在使用此示例工作台前,您应该查看其许可条款。
CUDA - RStudio Server workbench 镜像包含 NVIDIA CUDA 技术。CUDA 许可信息包括在 CUDA Toolkit 文档中。在使用此示例工作台前,您应该查看其许可条款。
要使用 RStudio Server and CUDA - RStudio Server workbench 镜像,您必须首先通过创建 secret 并触发 BuildConfig
来在 OpenShift AI UI 中启用它们,然后通过编辑 r Studio-rhel9 和
镜像流在 OpenShift AI UI 中启用。
cuda-r Studio-
rhel9
先决条件
-
在启动 RStudio 服务器构建过程前,您至少需要 1 个 CPU 和 2Gi 内存(
r Studio-server-rhel9
),以及 1.5 个 CPU 和 8Gi 内存用于集群中cuda-r Studio-server-rhel9
。 - 已登陆到 OpenShift 集群。
-
在 OpenShift 中具有
cluster-admin
角色。 - 您有一个有效的 Red Hat Enterprise Linux (RHEL)订阅。
流程
使用 Subscription Manager 凭证创建 secret。这些通常是您的红帽客户门户网站用户名和密码。
注: secret 必须命名为
rhel-subscription-secret
,其USERNAME
和PASSWORD
键必须采用大写字母。oc create secret generic rhel-subscription-secret --from-literal=USERNAME=<username> --from-literal=PASSWORD=<password> -n redhat-ods-applications
oc create secret generic rhel-subscription-secret --from-literal=USERNAME=<username> --from-literal=PASSWORD=<password> -n redhat-ods-applications
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 启动构建:
启动轻量级 RStudio 服务器构建:
oc start-build rstudio-server-rhel9 -n redhat-ods-applications --follow
oc start-build rstudio-server-rhel9 -n redhat-ods-applications --follow
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 要启动启用了 CUDA 的 RStudio 服务器构建,请触发
cuda-rhel9
BuildConfig:oc start-build cuda-rhel9 -n redhat-ods-applications --follow
oc start-build cuda-rhel9 -n redhat-ods-applications --follow
Copy to Clipboard Copied! Toggle word wrap Toggle overflow cuda-rhel9 构建是 cuda-r Studio-rhel9 的先决条件。cuda-r Studio-rhel9 构建会自动启动。
使用以下命令确认构建过程成功完成。成功构建显示为
Complete
。oc get builds -n redhat-ods-applications
oc get builds -n redhat-ods-applications
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 构建成功完成后,使用以下命令使工作台镜像在 OpenShift AI UI 中提供。
启用 RStudio 服务器工作台镜像:
oc label -n redhat-ods-applications imagestream rstudio-rhel9 opendatahub.io/notebook-image='true'
oc label -n redhat-ods-applications imagestream rstudio-rhel9 opendatahub.io/notebook-image='true'
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 启用 CUDA - RStudio Server workbench 镜像:
oc label -n redhat-ods-applications imagestream cuda-rstudio-rhel9 opendatahub.io/notebook-image='true'
oc label -n redhat-ods-applications imagestream cuda-rstudio-rhel9 opendatahub.io/notebook-image='true'
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
验证
-
您可以在 Red Hat OpenShift AI 仪表板的 Applications
Enabled 菜单中看到 RStudio Server Server and CUDA - RStudio Server 镜像。 -
您可以在 Data Science Projects
Workbenches Create workbench Notebook image Image selection 下拉列表中看到 R Studio Server 或 CUDA - RStudio Server。