You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/efk-logging-deploy-subscription.adoc
+57-38Lines changed: 57 additions & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ You can install the Cluster Logging Operator using the web console or CLI.
23
23
24
24
Ensure that you have the necessary persistent storage for Elasticsearch. Note that each Elasticsearch node
25
25
requires its own storage volume.
26
-
+
26
+
27
27
Elasticsearch is a memory-intensive application. Each Elasticsearch node needs 16G of memory for both memory requests and CPU limits.
28
28
The initial set of {product-title} nodes might not be large enough to support the Elasticsearch cluster. You must add additional nodes to the
29
29
{product-title} cluster to run with the recommended or higher memory. Each Elasticsearch node can operate with a lower
@@ -35,12 +35,17 @@ You *must* install the Elasticsearch Operator using the CLI following the direct
35
35
You can install the Cluster Logging Operator using the web console or CLI.
36
36
====
37
37
38
-
39
38
.Procedure
40
39
41
-
. Install the Elasticsearch Operator using the CLI to ensure the necessary values are set:
40
+
. Create Namespaces for the Elasticsearch Operator and Cluster Logging Operator.
41
+
+
42
+
[NOTE]
43
+
====
44
+
You can also create the Namespaces in the web console using the *Administration* -> *Namespaces* page.
45
+
You must apply the `cluster-logging` and `cluster-monitoring` labels listed in the sample YAML to the namespaces you create.
46
+
====
42
47
43
-
.. Create a Namespace for the Elasticsearch operator (for example, `eo-project.yaml`):
48
+
.. Create a Namespace for the Elasticsearch Operator (for example, `eo-namespace.yaml`):
44
49
+
45
50
----
46
51
apiVersion: v1
@@ -55,11 +60,48 @@ metadata:
55
60
----
56
61
<1> You must specify the `openshift-operators-redhat` namespace.
57
62
58
-
.. Create the Namespace object:
63
+
.. Run the following command to create the namespace:
64
+
+
65
+
----
66
+
$ oc create -f <file-name>.yaml
67
+
----
68
+
+
69
+
For example:
70
+
+
71
+
----
72
+
$ oc create -f eo-namespace.yaml
73
+
----
74
+
75
+
.. Create a Namespace for the Cluster Logging Operator (for example, `clo-namespace.yaml`):
76
+
+
77
+
[source,yaml]
78
+
----
79
+
apiVersion: v1
80
+
kind: Namespace
81
+
metadata:
82
+
name: openshift-logging
83
+
annotations:
84
+
openshift.io/node-selector: "" <1>
85
+
labels:
86
+
openshift.io/cluster-logging: "true"
87
+
openshift.io/cluster-monitoring: "true"
88
+
----
89
+
<1> Optionally specify an empty node selector in order for the logging pods to spread
90
+
evenly across your cluster. If you want the logging pods to run on specific nodes, you can specify a node selector value here.
91
+
92
+
.. Run the following command to create the namespace:
59
93
+
60
94
----
61
-
$ oc create -f eo-project.yaml
95
+
$ oc create -f <file-name>.yaml
96
+
----
97
+
+
98
+
For example:
99
+
+
62
100
----
101
+
$ oc create -f clo-namespace.yaml
102
+
----
103
+
104
+
. Install the Elasticsearch Operator by creating the following objects:
63
105
64
106
.. Create an Operator Group object YAML file (for example, `eo-og.yaml`) for the Elasticsearch operator:
65
107
+
@@ -73,7 +115,7 @@ spec: {}
73
115
----
74
116
<1> You must specify the `openshift-operators-redhat` namespace.
75
117
76
-
.. Create the Operator Group object:
118
+
.. Create an Operator Group object:
77
119
+
78
120
----
79
121
$ oc create -f eo-og.yaml
@@ -98,7 +140,7 @@ spec:
98
140
The Operator generates a CatalogSource from your CatalogSourceConfig in the
99
141
namespace specified in `targetNamespace`.
100
142
101
-
.. Create the CatalogSourceConfig object:
143
+
.. Create a CatalogSourceConfig object:
102
144
+
103
145
----
104
146
$ oc create -f eo-csc.yaml
@@ -155,6 +197,7 @@ Now using project "openshift-operators-redhat"
155
197
156
198
.. Create a Role-based Access Control (RBAC) object file (for example, `eo-rbac.yaml`) to grant Prometheus permission to access the `openshift-operators-redhat` namespace:
157
199
+
200
+
[source,yaml]
158
201
----
159
202
apiVersion: rbac.authorization.k8s.io/v1
160
203
kind: Role
@@ -197,31 +240,7 @@ $ oc create -f eo-rbac.yaml
197
240
The Elasticsearch operator is installed to each project in the cluster.
198
241
199
242
200
-
. You can install the Cluster Logging Operator using the {product-title} web console for best results:
201
-
202
-
.. In the CLI, create a project for cluster logging. You must create the project with the CLI:
203
-
+
204
-
[source,yaml]
205
-
----
206
-
apiVersion: v1
207
-
kind: Namespace
208
-
metadata:
209
-
name: openshift-logging
210
-
annotations:
211
-
openshift.io/node-selector: "" <1>
212
-
labels:
213
-
openshift.io/cluster-logging: "true"
214
-
openshift.io/cluster-monitoring: "true"
215
-
----
216
-
<1> Optionally specify an empty node selector in order for the logging pods to spread
217
-
evenly across your cluster. The logging pods will be spread evenly throughout the cluster.
218
-
If you want the logging pods to run on specific nodes, you can specify a node selector value here.
219
-
220
-
.. Run the following command to create the project:
221
-
+
222
-
----
223
-
$ oc create -f <file-name>.yaml
224
-
----
243
+
. Install the Cluster Logging Operator using the {product-title} web console for best results:
225
244
226
245
.. In the {product-title} web console, click *Catalog* -> *OperatorHub*.
227
246
@@ -234,8 +253,10 @@ Then, click *Subscribe*.
234
253
235
254
.. Switch to the *Catalog* → *Installed Operators* page.
236
255
237
-
.. Ensure that *Cluster Logging* and *Elasticsearch Operator* are listed on
238
-
the *InstallSucceeded* tab with a *Status* of *InstallSucceeded*. Change the project to *all projects* if necessary.
256
+
.. Ensure that *Cluster Logging* is listed in the *openshift-logging* project with a *Status* of *InstallSucceeded*.
257
+
258
+
.. Ensure that *Elasticsearch Operator* is listed in the *openshift-operator-redhat* project with a *Status* of *InstallSucceeded*.
259
+
The Elasticsearch Operator is copies to all other projects.
239
260
+
240
261
[NOTE]
241
262
====
@@ -245,8 +266,6 @@ you can safely ignore the *Failed* message.
245
266
+
246
267
If either operator does not appear as installed, to troubleshoot further:
247
268
+
248
-
* On the *Copied* tab of the *Installed Operators* page, if an operator show a *Status* of
249
-
*Copied*, this indicates the installation is in process and is expected behavior.
250
269
* Switch to the *Catalog* → *Operator Management* page and inspect
251
270
the *Operator Subscriptions* and *Install Plans* tabs for any failure or errors
252
271
under *Status*.
@@ -353,4 +372,4 @@ You should see several pods for cluster logging, Elasticsearch, Fluentd, and Kib
0 commit comments