Customizing limits and requests of License Service resources
You can change the default resource limits and requests to custom values for the resources that are managed by L:icense Service.
You can change the following resource limits and requests:
cpu
memory
hugepages-<size>
, where<size>
is size of the hugepages that are configured on the cluster nodes, for example, 2Mi. For more information, see Manage HugePages in Kubernetes documentation.
Note: The best practice is to set both custom limits and requests for resources to avoid conflicts with the default values that are set by the operator.
Complete the following steps:
-
Open the License Service custom resource (CR).
-
From the OpenShift console:
- Log in to your OpenShift console.
- Go to Operators > Installed Operators.
- From the Project drop-down list, select All Projects
- Select IBM Licensing.
- Select the IBM License Service tab. The instance of License Service custom resource is listed.
- From the overflow action menu, select Edit IBMLicensing.
-
From the command line:
-
Run the following command:
kubectl edit IBMLicensing instance -n ibm-licensing
Note: The
ibm-licensing
namespace is the default License Service namespace. If you installed License Service in a custom namespace, replaceibm-licensing
with your custom namespace.
-
-
-
Edit limits and requests for your License Service resources. Provide custom resource limits and requests in the CR by changing values for one or more resources. For example:
spec: resources: limits: cpu: 500Mi memory: 2Gi hugepages-2Mi: 100Mi requests: cpu: 200Mi memory: 1Gi hugepages-2Mi: 100Mi
-
Save the CR to apply the changes.
For more information about types of resources, see Resource Management for Pods and Containers in Kubernetes documentation.