Skip to content

5. Customizing component deployment resources and replica number

Wen Zhou edited this page Mar 19, 2025 · 2 revisions

Start from ODH 2.16 release, new feature has been added for user to customize components' deployment resources and replica number.

What

User can customize deployment resources and replica number that are related to the Open Data Hub component, for example, CPU and memory on 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 which allows user to config such values without perform extra steps.

How

You can customize component deployment resources by updating the component deployment.

Example

spec:
  replicas: 5
  template:
    spec:
      containers:
        - resources:
            limits:
              cpu: 100m
              memory: 1Gi
            requests:
              cpu: 50m
              memory: 200Mi

you can config these fields as needed. Use Openshift console to scale down replica number can achieve the same as updating YAML file.

Clone this wiki locally