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
* Cluster logging and Elasticsearch must be installed.
27
41
28
-
* Set cluster logging to the unmanaged state.
29
-
30
42
* You must have access to the project in order to be able to access to the logs. For example:
31
43
+
32
44
----
@@ -37,10 +49,12 @@ $ oc new-app <httpd-example>
37
49
38
50
.Procedure
39
51
40
-
. Use the following command to set name of the Elasticsearch pod in a variable for use in a cURL command:
52
+
To expose Elasticsearch externally:
53
+
54
+
. Change to the `openshift-logging` project:
41
55
+
42
56
----
43
-
ESPOD=$( oc get pods -l component=elasticsearch -o name | sed -e "s/pod\///" )
57
+
$ oc project openshift-logging
44
58
----
45
59
46
60
. Use the following command to extract the CA certificate from Elasticsearch and write to the *_admin-ca_* file:
@@ -68,9 +82,9 @@ spec:
68
82
name: elasticsearch
69
83
tls:
70
84
termination: reencrypt
71
-
destinationCACertificate: <1>
85
+
destinationCACertificate: | <1>
72
86
----
73
-
<1> Add the Elasticsearch CA ceritifcate or use the command in the next step. You do not need to set the `spec.tls.key`, `spec.tls.certificate` and `spec.tls.caCertificate` parameters
87
+
<1> Add the Elasticsearch CA ceritifcate or use the command in the next step. You do not need to set the `spec.tls.key`, `spec.tls.certificate`, and `spec.tls.caCertificate` parameters
74
88
required by some reencrypt routes.
75
89
76
90
.. Run the following command to add the Elasticsearch CA certificate to the route YAML you created:
@@ -99,20 +113,73 @@ route.route.openshift.io/elasticsearch created
99
113
$ token=$(oc whoami -t)
100
114
----
101
115
102
-
.. Run a command similar to the following, using your cluster address to access Elasticsearch through the exposed route:
116
+
.. Set the *elasticsearch* route you created as an environment variable.
0 commit comments