mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
37 lines
977 B
Plaintext
37 lines
977 B
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * security/compliance_operator/co-scans/compliance-operator-troubleshooting.adoc
|
|
|
|
:_mod-docs-content-type: REFERENCE
|
|
[id="operator-resource-constraints_{context}"]
|
|
= Configuring Operator resource constraints
|
|
|
|
The `resources` field defines Resource Constraints for all the containers in the Pod created by the Operator Lifecycle Manager (OLM).
|
|
|
|
[NOTE]
|
|
====
|
|
Resource Constraints applied in this process overwrites the existing resource constraints.
|
|
====
|
|
|
|
.Procedure
|
|
|
|
* Inject a request of 0.25 cpu and 64 Mi of memory, and a limit of 0.5 cpu and 128 Mi of memory in each container by editing the `Subscription` object:
|
|
+
|
|
[source,yaml]
|
|
----
|
|
kind: Subscription
|
|
metadata:
|
|
name: compliance-operator
|
|
namespace: openshift-compliance
|
|
spec:
|
|
package: package-name
|
|
channel: stable
|
|
config:
|
|
resources:
|
|
requests:
|
|
memory: "64Mi"
|
|
cpu: "250m"
|
|
limits:
|
|
memory: "128Mi"
|
|
cpu: "500m"
|
|
---- |