1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/compliance-increasing-operator-limits.adoc
2023-10-30 10:13:25 -04:00

31 lines
928 B
Plaintext

// Module included in the following assemblies:
//
// * security/compliance_operator/co-scans/compliance-operator-troubleshooting.adoc
:_mod-docs-content-type: PROCEDURE
[id="compliance-increasing-operator-limits_{context}"]
= Increasing Compliance Operator resource limits
In some cases, the Compliance Operator might require more memory than the default limits allow. The best way to mitigate this issue is to set custom resource limits.
To increase the default memory and CPU limits of scanner pods, see _`ScanSetting` Custom resource_.
.Procedure
. To increase the Operator's memory limits to 500 Mi, create the following patch file named `co-memlimit-patch.yaml`:
+
[source,yaml]
----
spec:
config:
resources:
limits:
memory: 500Mi
----
. Apply the patch file:
+
[source,terminal]
----
$ oc patch sub compliance-operator -nopenshift-compliance --patch-file co-memlimit-patch.yaml --type=merge
----