Skip to content

Commit d270ed5

Browse files
prithvipatil97openshift-cherrypick-robot
authored andcommitted
Loki Secret - Update loki-create-object-storage-secret-cli.adoc
- Command structure needs to be corrected in Loki Object Storage documentation. - Here is the documentation link: https://docs.redhat.com/en/documentation/red_hat_openshift_logging/6.3/html/configuring_logging/configuring-lokistack-storage#loki-create-object-storage-secret-cli_configuring-the-log-store Current Status: Create a secret in the directory that contains your certificate and key files by running the following command: ~~~ $ oc create secret generic -n openshift-logging <your_secret_name> \ --from-file=tls.key=<your_key_file> --from-file=tls.crt=<your_crt_file> --from-file=ca-bundle.crt=<your_bundle_file> --from-literal=username=<your_username> --from-literal=password=<your_password> ~~~ - In the above commands, the "- -" signs are incorrectly placed below the "$" symbol. - However, they should be aligned parallel to the "oc" command, where the command begins. - Here is the updated look for all these commands: Create a secret in the directory that contains your certificate and key files by running the following command: ~~~ $ oc create secret generic -n openshift-logging <your_secret_name> \ --from-file=tls.key=<your_key_file> --from-file=tls.crt=<your_crt_file> --from-file=ca-bundle.crt=<your_bundle_file> --from-literal=username=<your_username> --from-literal=password=<your_password> ~~~ Verify that a secret was created by running the following command: ~~~ $ oc get secret -n openshift-logging ~~~ The commands will work as it is, but the structure is incorrect. [new] commit -Fix command formatting in secret creation example Added the backslash (\) in all lines.
1 parent 2417b11 commit d270ed5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

modules/loki-create-object-storage-secret-cli.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ To configure Loki object storage, you must create a secret. You can do this by u
2121
[source,terminal]
2222
----
2323
$ oc create secret generic -n openshift-logging <your_secret_name> \
24-
--from-file=tls.key=<your_key_file>
25-
--from-file=tls.crt=<your_crt_file>
26-
--from-file=ca-bundle.crt=<your_bundle_file>
27-
--from-literal=username=<your_username>
28-
--from-literal=password=<your_password>
24+
--from-file=tls.key=<your_key_file> \
25+
--from-file=tls.crt=<your_crt_file> \
26+
--from-file=ca-bundle.crt=<your_bundle_file> \
27+
--from-literal=username=<your_username> \
28+
--from-literal=password=<your_password>
2929
----
3030
3131
[NOTE]
@@ -39,5 +39,5 @@ Use generic or opaque secrets for best results.
3939
+
4040
[source,terminal]
4141
----
42-
$ oc get secrets
42+
$ oc get secret -n openshift-logging
4343
----

0 commit comments

Comments
 (0)