Skip to content

Commit b051f3c

Browse files
authored
Merge pull request #30943 from sounix000/rhdevdocs_2625_2626_2628
Modified command snippets and YAML samples according to RHDEVDOCS - 2625, 2626, and 2638
2 parents 791506b + 102121e commit b051f3c

File tree

3 files changed

+25
-20
lines changed

3 files changed

+25
-20
lines changed

logging/config/cluster-logging-tolerations.adoc

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ include::modules/common-attributes.adoc[]
55

66
toc::[]
77

8-
You can use taints and tolerations to ensure that OpenShift Logging pods run
8+
You can use taints and tolerations to ensure that OpenShift Logging pods run
99
on specific nodes and that no other workload can run on those nodes.
1010

11-
Taints and tolerations are simple `key:value` pair. A taint on a node
12-
instructs the node to repel all pods that do not tolerate the taint.
11+
Taints and tolerations are simple `key:value` pair. A taint on a node
12+
instructs the node to repel all pods that do not tolerate the taint.
1313

1414
The `key` is any string, up to 253 characters and the `value` is any string up to 63 characters.
1515
The string must begin with a letter or number, and may contain letters, numbers, hyphens, dots, and underscores.
@@ -22,23 +22,26 @@ kind: "ClusterLogging"
2222
metadata:
2323
name: "instance"
2424
namespace: openshift-logging
25+
26+
...
27+
2528
spec:
2629
managementState: "Managed"
2730
logStore:
2831
type: "elasticsearch"
2932
elasticsearch:
30-
nodeCount: 1
33+
nodeCount: 3
3134
tolerations: <1>
3235
- key: "logging"
3336
operator: "Exists"
3437
effect: "NoExecute"
3538
tolerationSeconds: 6000
3639
resources:
3740
limits:
38-
memory: 8Gi
41+
memory: 16Gi
3942
requests:
40-
cpu: 100m
41-
memory: 1Gi
43+
cpu: 200m
44+
memory: 16Gi
4245
storage: {}
4346
redundancyPolicy: "ZeroRedundancy"
4447
visualization:
@@ -59,7 +62,7 @@ spec:
5962
collection:
6063
logs:
6164
type: "fluentd"
62-
fluentd:
65+
fluentd:
6366
tolerations: <3>
6467
- key: "logging"
6568
operator: "Exists"
@@ -91,5 +94,5 @@ include::modules/cluster-logging-collector-tolerations.adoc[leveloffset=+1]
9194
[id="cluster-logging-tolerations-addtl-resources"]
9295
== Additional resources
9396

94-
For more information about taints and tolerations, see
97+
For more information about taints and tolerations, see
9598
xref:../../nodes/scheduling/nodes-scheduler-taints-tolerations.adoc#nodes-scheduler-taints-tolerations[Controlling pod placement using node taints].

modules/cluster-logging-collector-limits.adoc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
[id="cluster-logging-collector-limits_{context}"]
66
= Configure log collector CPU and memory limits
77

8-
The log collector allows for adjustments to both the CPU and memory limits.
8+
The log collector allows for adjustments to both the CPU and memory limits.
99

1010
.Procedure
1111

12-
. Edit the `ClusterLogging` custom resource (CR) in the `openshift-logging` project:
12+
. Edit the `ClusterLogging` custom resource (CR) in the `openshift-logging` project:
1313
+
1414
[source,terminal]
1515
----
16-
$ oc edit ClusterLogging instance
16+
$ oc -n openshift-logging edit ClusterLogging instance
1717
----
1818
+
1919
[source,yaml]
@@ -22,8 +22,9 @@ apiVersion: "logging.openshift.io/v1"
2222
kind: "ClusterLogging"
2323
metadata:
2424
name: "instance"
25+
namespace: openshift-logging
2526
26-
....
27+
...
2728
2829
spec:
2930
collection:

modules/cluster-logging-cpu-memory.adoc

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
[id="cluster-logging-memory-limits_{context}"]
66
= Configuring CPU and memory limits
77

8-
The OpenShift Logging components allow for adjustments to both the CPU and memory limits.
8+
The OpenShift Logging components allow for adjustments to both the CPU and memory limits.
99

1010
.Procedure
1111

12-
. Edit the `ClusterLogging` custom resource (CR) in the `openshift-logging` project:
12+
. Edit the `ClusterLogging` custom resource (CR) in the `openshift-logging` project:
1313
+
1414
[source,terminal]
1515
----
16-
$ oc edit ClusterLogging instance -n openshift-logging
16+
$ oc -n openshift-logging edit ClusterLogging instance
1717
----
1818
+
1919
[source,yaml]
@@ -22,21 +22,22 @@ apiVersion: "logging.openshift.io/v1"
2222
kind: "ClusterLogging"
2323
metadata:
2424
name: "instance"
25+
namespace: openshift-logging
2526
26-
....
27+
...
2728
2829
spec:
2930
managementState: "Managed"
3031
logStore:
3132
type: "elasticsearch"
3233
elasticsearch:
33-
nodeCount: 2
34+
nodeCount: 3
3435
resources: <1>
3536
limits:
36-
memory: 2Gi
37+
memory: 16Gi
3738
requests:
3839
cpu: 200m
39-
memory: 2Gi
40+
memory: 16Gi
4041
storage:
4142
storageClassName: "gp2"
4243
size: "200G"

0 commit comments

Comments
 (0)