此内容没有您所选择的语言版本。

Chapter 6. Customizing component deployment resources


6.1. Overview of component resource customization

You can customize deployment resources that are related to the Red Hat OpenShift AI Operator, for example, CPU and memory limits and requests. For resource customizations to persist without being overwritten by the Operator, the opendatahub.io/managed: true annotation must not be present in the YAML file for the component deployment. This annotation is absent by default.

The following table shows the deployment names for each component in the redhat-ods-applications namespace.

Important

Components denoted with (Technology Preview) in this table are not supported with Red Hat production service level agreements (SLAs) and might not be functionally complete. Red Hat does not recommend using Technology Preview features in production. These features provide early access to upcoming product features, enabling customers to test functionality and provide feedback during the development process. For more information about the support scope of Red Hat Technology Preview features, see Technology Preview Features Support Scope.

Expand
ComponentDeployment names

CodeFlare

codeflare-operator-manager

KServe

  • kserve-controller-manager
  • odh-model-controller

Ray

kuberay-operator

Kueue

kueue-controller-manager

Workbenches

  • notebook-controller-deployment
  • odh-notebook-controller-manager

Dashboard

rhods-dashboard

Model serving

  • modelmesh-controller
  • odh-model-controller

Model registry (Technology Preview)

model-registry-operator-controller-manager

Data science pipelines

data-science-pipelines-operator-controller-manager

Training Operator

kubeflow-training-operator

6.2. Customizing component resources

You can customize component deployment resources by updating the .spec.template.spec.containers.resources section of the YAML file for the component deployment.

Prerequisites

  • You have cluster administrator privileges for your OpenShift cluster.

Procedure

  1. Log in to the OpenShift console as a cluster administrator.
  2. In the Administrator perspective, click Workloads Deployments.
  3. From the Project drop-down list, select redhat-ods-applications.
  4. In the Name column, click the name of the deployment for the component that you want to customize resources for.

    Note

    For more information about the deployment names for each component, see Overview of component resource customization.

  5. On the Deployment details page that appears, click the YAML tab.
  6. Find the .spec.template.spec.containers.resources section.
  7. Update the value of the resource that you want to customize. For example, to update the memory limit to 500Mi, make the following change:

    containers:
            - resources:
                limits:
                    cpu: '2'
                    memory: 500Mi
                requests:
                    cpu: '1'
                    memory: 1Gi
    Copy to Clipboard Toggle word wrap
  8. Click Save.
  9. Click Reload.

Verification

  • Log in to OpenShift AI and verify that your resource changes apply.

6.3. Disabling component resource customization

You can disable customization of component deployment resources, and restore default values, by adding the opendatahub.io/managed: true annotation to the YAML file for the component deployment.

Important

Manually removing or setting the opendatahub.io/managed: true annotation to false after manually adding it to the YAML file for a component deployment might cause unexpected cluster issues.

To remove the annotation from a deployment, use the steps described in Re-enabling component resource customization.

Prerequisites

  • You have cluster administrator privileges for your OpenShift cluster.

Procedure

  1. Log in to the OpenShift console as a cluster administrator.
  2. In the Administrator perspective, click Workloads Deployments.
  3. From the Project drop-down list, select redhat-ods-applications.
  4. In the Name column, click the name of the deployment for the component to which you want to add the annotation.

    Note

    For more information about the deployment names for each component, see Overview of component resource customization.

  5. On the Deployment details page that appears, click the YAML tab.
  6. Find the metadata.annotations: section.
  7. Add the opendatahub.io/managed: true annotation.

    metadata:
      annotations:
         opendatahub.io/managed: true
    Copy to Clipboard Toggle word wrap
  8. Click Save.
  9. Click Reload.

Verification

  • The opendatahub.io/managed: true annotation appears in the YAML file for the component deployment.

6.4. Re-enabling component resource customization

You can re-enable customization of component deployment resources after manually disabling it.

Important

Manually removing or setting the opendatahub.io/managed: annotation to false after adding it to the YAML file for a component deployment might cause unexpected cluster issues.

To remove the annotation from a deployment, use the following steps to delete the deployment. The controller pod for the deployment will automatically redeploy with the default settings.

Prerequisites

  • You have cluster administrator privileges for your OpenShift cluster.

Procedure

  1. Log in to the OpenShift console as a cluster administrator.
  2. In the Administrator perspective, click Workloads Deployments.
  3. From the Project drop-down list, select redhat-ods-applications.
  4. In the Name column, click the name of the deployment for the component for which you want to remove the annotation.
  5. Click the Options menu Options menu .
  6. Click Delete Deployment.

Verification

  • The controller pod for the deployment automatically redeploys with the default settings.
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat