Skip to content

Commit a91890c

Browse files
authored
Merge pull request openshift#15256 from mburke5678/logging-install-fix-eo
Fix the Elasticsearch Opetrator install based on slack
2 parents 439398f + 9725bdc commit a91890c

File tree

1 file changed

+57
-38
lines changed

1 file changed

+57
-38
lines changed

modules/efk-logging-deploy-subscription.adoc

Lines changed: 57 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ You can install the Cluster Logging Operator using the web console or CLI.
2323

2424
Ensure that you have the necessary persistent storage for Elasticsearch. Note that each Elasticsearch node
2525
requires its own storage volume.
26-
+
26+
2727
Elasticsearch is a memory-intensive application. Each Elasticsearch node needs 16G of memory for both memory requests and CPU limits.
2828
The initial set of {product-title} nodes might not be large enough to support the Elasticsearch cluster. You must add additional nodes to the
2929
{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
3535
You can install the Cluster Logging Operator using the web console or CLI.
3636
====
3737

38-
3938
.Procedure
4039

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+
====
4247

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`):
4449
+
4550
----
4651
apiVersion: v1
@@ -55,11 +60,48 @@ metadata:
5560
----
5661
<1> You must specify the `openshift-operators-redhat` namespace.
5762

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:
5993
+
6094
----
61-
$ oc create -f eo-project.yaml
95+
$ oc create -f <file-name>.yaml
96+
----
97+
+
98+
For example:
99+
+
62100
----
101+
$ oc create -f clo-namespace.yaml
102+
----
103+
104+
. Install the Elasticsearch Operator by creating the following objects:
63105

64106
.. Create an Operator Group object YAML file (for example, `eo-og.yaml`) for the Elasticsearch operator:
65107
+
@@ -73,7 +115,7 @@ spec: {}
73115
----
74116
<1> You must specify the `openshift-operators-redhat` namespace.
75117

76-
.. Create the Operator Group object:
118+
.. Create an Operator Group object:
77119
+
78120
----
79121
$ oc create -f eo-og.yaml
@@ -98,7 +140,7 @@ spec:
98140
The Operator generates a CatalogSource from your CatalogSourceConfig in the
99141
namespace specified in `targetNamespace`.
100142

101-
.. Create the CatalogSourceConfig object:
143+
.. Create a CatalogSourceConfig object:
102144
+
103145
----
104146
$ oc create -f eo-csc.yaml
@@ -155,6 +197,7 @@ Now using project "openshift-operators-redhat"
155197

156198
.. 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:
157199
+
200+
[source,yaml]
158201
----
159202
apiVersion: rbac.authorization.k8s.io/v1
160203
kind: Role
@@ -197,31 +240,7 @@ $ oc create -f eo-rbac.yaml
197240
The Elasticsearch operator is installed to each project in the cluster.
198241

199242

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:
225244

226245
.. In the {product-title} web console, click *Catalog* -> *OperatorHub*.
227246

@@ -234,8 +253,10 @@ Then, click *Subscribe*.
234253

235254
.. Switch to the *Catalog* → *Installed Operators* page.
236255

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.
239260
+
240261
[NOTE]
241262
====
@@ -245,8 +266,6 @@ you can safely ignore the *Failed* message.
245266
+
246267
If either operator does not appear as installed, to troubleshoot further:
247268
+
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.
250269
* Switch to the *Catalog* → *Operator Management* page and inspect
251270
the *Operator Subscriptions* and *Install Plans* tabs for any failure or errors
252271
under *Status*.
@@ -353,4 +372,4 @@ You should see several pods for cluster logging, Elasticsearch, Fluentd, and Kib
353372
* fluentd-zqgqx
354373
* kibana-7fb4fd4cc9-bvt4p
355374
+
356-
.. Switch to the *Workloads* -> *Pods* page.
375+

0 commit comments

Comments
 (0)