File tree Expand file tree Collapse file tree 2 files changed +24
-16
lines changed Expand file tree Collapse file tree 2 files changed +24
-16
lines changed Original file line number Diff line number Diff line change 3
3
// * logging/cluster-logging-elasticsearch.adoc
4
4
5
5
[id="cluster-logging-configuring-node-selector_{context}"]
6
- = Specifying a node for OpenShift Logging components using node selectors
6
+ = Specifying a node for cluster logging components using node selectors
7
7
8
- Each component specification allows the component to target a specific node.
8
+ Each component specification allows the component to target a specific node.
9
9
10
10
.Procedure
11
11
12
- . Edit the Cluster Logging custom resource (CR) in the `openshift-logging` project:
13
- +
14
- ----
15
- $ oc edit ClusterLogging instance
16
- ----
17
- +
12
+ Edit the Cluster Logging Custom Resource (CR) in the `openshift-logging` project:
13
+
18
14
[source,yaml]
19
15
----
16
+ $ oc edit ClusterLogging instance
17
+
20
18
apiVersion: "logging.openshift.io/v1"
21
19
kind: "ClusterLogging"
22
20
metadata:
@@ -28,13 +26,13 @@ spec:
28
26
elasticsearch:
29
27
nodeSelector: <1>
30
28
logging: es
31
- nodeCount: 1
29
+ nodeCount: 3
32
30
resources:
33
31
limits:
34
- memory: 2Gi
32
+ memory: 16Gi
35
33
requests:
36
- cpu: 200m
37
- memory: 2Gi
34
+ cpu: 500m
35
+ memory: 16Gi
38
36
storage:
39
37
size: "20G"
40
38
storageClassName: "gp2"
@@ -45,13 +43,23 @@ spec:
45
43
nodeSelector: <2>
46
44
logging: kibana
47
45
replicas: 1
46
+ curation:
47
+ type: "curator"
48
+ curator:
49
+ nodeSelector: <3>
50
+ logging: curator
51
+ schedule: "*/10 * * * *"
48
52
collection:
49
53
logs:
50
54
type: "fluentd"
51
55
fluentd:
52
- nodeSelector: <3 >
56
+ nodeSelector: <4 >
53
57
logging: fluentd
54
58
----
59
+
55
60
<1> Node selector for Elasticsearch.
56
61
<2> Node selector for Kibana.
57
- <3> Node selector for Fluentd.
62
+ <3> Node selector for Curator.
63
+ <4> Node selector for Fluentd.
64
+
65
+
Original file line number Diff line number Diff line change 35
35
resources:
36
36
limits:
37
37
cpu:
38
- memory:
38
+ memory: 16Gi
39
39
requests:
40
- cpu: 1
40
+ cpu: 500m
41
41
memory: 16Gi
42
42
type: "elasticsearch"
43
43
collection:
You can’t perform that action at this time.
0 commit comments