From 7d2134fb0aecb8630d80cafc19d606f6f3d9f21e Mon Sep 17 00:00:00 2001 From: Prithviraj Patil <116709298+prithvipatil97@users.noreply.github.com> Date: Wed, 11 Dec 2024 22:16:36 +0530 Subject: [PATCH] Indentation fault in Configuring CPU and memory limits for logging components in Documentation Indentation fault in Configuring CPU and memory limits for logging components in Documentation. Here is the documentation link: https://docs.openshift.com/container-platform/4.16/observability/logging/config/cluster-logging-memory.html#cluster-logging-memory-limits_cluster-logging-memory Here, `spec.collection` indentation is wrongly mentioned. ~~~ apiVersion: "logging.openshift.io/v1" kind: "ClusterLogging" metadata: name: "instance" namespace: openshift-logging spec: collection: <<== collection indentation is wrongly mentioned resources: limits: memory: 736Mi requests: cpu: 200m memory: 736Mi type: fluentd ~~~ -Due to this `spec.collection` will not get applied in the `ClusterLogging` instance CR. -The correct configuration should look like the following: ~~~ apiVersion: "logging.openshift.io/v1" kind: "ClusterLogging" metadata: name: "instance" namespace: openshift-logging spec: collection: <<== Here is correct indentation resources: limits: memory: 736Mi requests: cpu: 200m memory: 736Mi type: fluentd ~~~ --- modules/cluster-logging-cpu-memory.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cluster-logging-cpu-memory.adoc b/modules/cluster-logging-cpu-memory.adoc index 766fd539fc7f..fb1c99a8fb3e 100644 --- a/modules/cluster-logging-cpu-memory.adoc +++ b/modules/cluster-logging-cpu-memory.adoc @@ -61,7 +61,7 @@ spec: cpu: 100m memory: 100Mi replicas: 2 -collection: + collection: resources: <3> limits: memory: 736Mi