Skip to content

Commit 8fc1ce5

Browse files
committed
Add region to LokiStack example secret and simplify creation
1 parent 8cb1e54 commit 8fc1ce5

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

modules/cluster-logging-loki-deploy.adoc

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ You must select this option to ensure that cluster monitoring scrapes the `opens
4444

4545
.. Ensure that *LokiOperator* is listed with *Status* as *Succeeded* in all the projects.
4646
+
47-
. Create a `Secret` YAML file that uses the `access_key_id` and `access_key_secret` fields to specify your base64-encoded AWS credentials. For example:
47+
. Create a `Secret` YAML file that uses the `access_key_id` and `access_key_secret` fields to specify your AWS credentials and `bucketnames`, `endpoint` and `region` to define the object storage location. For example:
4848
+
4949
[source,yaml]
5050
----
@@ -53,16 +53,13 @@ kind: Secret
5353
metadata:
5454
name: logging-loki-s3
5555
namespace: openshift-logging
56-
data:
57-
access_key_id: QUtJQUlPU0ZPRE5ON0VYQU1QTEUK <1>
58-
access_key_secret: d0phbHJYVXRuRkVNSS9LN01ERU5HL2JQeFJmaUNZRVhBTVBMRUtFWQo= <2>
59-
bucketnames: czMtYnVja2V0LW5hbWU= <3>
60-
endpoint: aHR0cHM6Ly9zMy5ldS1jZW50cmFsLTEuYW1hem9uYXdzLmNvbQ== <4>
56+
stringData:
57+
access_key_id: AKIAIOSFODNN7EXAMPLE
58+
access_key_secret: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
59+
bucketnames: s3-bucket-name
60+
endpoint: https://s3.eu-central-1.amazonaws.com
61+
region: eu-central-1
6162
----
62-
<1> Base64-encoded access key id
63-
<2> Base64-encoded access key secret
64-
<3> Base64-encoded bucket name
65-
<4> Base64-encoded S3 API endpoint
6663
+
6764
. Create the `LokiStack` custom resource:
6865
+
@@ -106,11 +103,11 @@ oc apply -f logging-loki.yaml
106103
spec:
107104
managementState: Managed
108105
logStore:
109-
type: lokistack
110-
lokistack:
111-
name: logging-loki
112-
collection:
113-
type: "vector"
106+
type: lokistack
107+
lokistack:
108+
name: logging-loki
109+
collection:
110+
type: "vector"
114111
----
115112
+
116113
.. Apply the configuration:

0 commit comments

Comments
 (0)