Skip to content

Commit

Permalink
OSDOCS-8330: Configure limits via Subscription, not CSV
Browse files Browse the repository at this point in the history
  • Loading branch information
skrthomas committed Nov 28, 2023
1 parent 4ca4699 commit 72bace8
Showing 1 changed file with 22 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,30 @@
[id="controller-manager-pod-runs-out-of-memory_{context}"]
= Network Observability controller manager pod runs out of memory

You can increase memory limits for the Network Observability operator by patching the Cluster Service Version (CSV), where Network Observability controller manager pod runs out of memory.

You can increase memory limits for the Network Observability operator by editing the `Subscription` object
.Procedure

. Run the following command to patch the CSV:
+
[source,terminal]
----
$ oc -n netobserv patch csv network-observability-operator.v1.0.0 --type='json' -p='[{"op": "replace", "path":"/spec/install/spec/deployments/0/spec/template/spec/containers/0/resources/limits/memory", value: "1Gi"}]'
----
* Increase memory limits to `800Mi` by editing the `Subscription` object:
+
.Example output
[source,yaml]
----
clusterserviceversion.operators.coreos.com/network-observability-operator.v1.0.0 patched
----

. Run the following command to view the updated CSV:
+
[source,terminal]
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: netobserv-operator
namespace: openshift-netobserv-operator
spec:
channel: stable
config:
resources:
limits:
memory: 800Mi
requests:
cpu: 100m
memory: 100Mi
installPlanApproval: Automatic
name: netobserv-operator
source: redhat-operators
sourceNamespace: openshift-marketplace
startingCSV: network-observability-operator.v1.4.1
----
$ oc -n netobserv get csv network-observability-operator.v1.0.0 -o jsonpath='{.spec.install.spec.deployments[0].spec.template.spec.containers[0].resources.limits.memory}'
1Gi
----

0 comments on commit 72bace8

Please sign in to comment.