1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-07 09:46:53 +01:00
Files
openshift-docs/modules/operator-resource-constraints.adoc
2023-10-30 10:13:25 -04:00

36 lines
930 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: custom-operator
spec:
package: etcd
channel: alpha
config:
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
----