requests:
cpu: 500m
memory: 128Mi
Resolve Velero or Restic pod crashes caused by insufficient memory or CPU by configuring resource requests in the DataProtectionApplication custom resource (CR). This helps you allocate adequate CPU and memory resources to prevent pod restarts and ensure stable backup and restore operations.
Ensure that the values for the resource request fields follow the same format as Kubernetes resource requirements.
If you do not specify configuration.velero.podConfig.resourceAllocations or configuration.restic.podConfig.resourceAllocations, see the following default resources specification configuration for a Velero or Restic pod:
requests:
cpu: 500m
memory: 128Mi
Use the configuration.velero.podConfig.resourceAllocations specification field in the oadp_v1alpha1_dpa.yaml file to set specific resource requests for a Velero pod.
Set the cpu and memory resource requests as shown in the following example:
apiVersion: oadp.openshift.io/v1alpha1
kind: DataProtectionApplication
...
configuration:
velero:
podConfig:
resourceAllocations:
requests:
cpu: 200m
memory: 256Mi
The resourceAllocations listed are for average usage.
Use the configuration.restic.podConfig.resourceAllocations specification field to set specific resource requests for a Restic pod.
Set the cpu and memory resource requests as shown in the following example:
apiVersion: oadp.openshift.io/v1alpha1
kind: DataProtectionApplication
...
configuration:
restic:
podConfig:
resourceAllocations:
requests:
cpu: 1000m
memory: 16Gi
The resourceAllocations listed are for average usage.