-
Notifications
You must be signed in to change notification settings - Fork 181
5. Customizing component deployment resources and replica number
Start from ODH 2.16 release, new feature has been added for user to customize components' deployment resources and replica number.
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.
You can customize component deployment resources by updating the component deployment.
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.