resources
Description
The resources property specifies the desired resources to allocate to the DataPower containers in the statefulset. It is worth noting that you can only request CPU, there is not a limit field, as the DataPower Operator will set:
DATAPOWER_WORKER_THREADS == container.limits.cpu == container.requests.cpu
Thus, when you define the CPU request, all of the above three values will get that value in the statefulset. This ensures best practices are followed in the DataPower runtime statefulset.
You are still able to set both requests and limits for memory. In both cases (cpu and memory) the values must follow Kubernetes formatting constraints.
If this field is not provided, or parts of the resources object are left unset, the example below shows the default value(s) that will be used.
Example
apiVersion: datapower.ibm.com/v1beta1
kind: DataPowerService
metadata:
name: example
spec:
resources:
requests:
cpu: 4
memory: 4Gi
limits:
memory: 8Gi
...