Skip to content

Commit 116e75f

Browse files
committed
RHDEVDOCS-3184 - How to create a secret w/ password - Reviewed v 2
1 parent 88e50e3 commit 116e75f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

modules/cluster-logging-collector-log-forwarding-about.adoc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,3 +177,21 @@ If missing, SASL is automatically enabled when any of the other `sasl.` keys are
177177
* `sasl.mechanisms`: (array) List of allowed SASL mechanism names.
178178
If missing or empty, the system defaults are used.
179179
* `sasl.allow-insecure`: (boolean) Allow mechanisms that send clear-text passwords. Defaults to false.
180+
181+
== Creating a Secret
182+
183+
You can create a secret in the directory that contains your certificate and key files by using the following command:
184+
[subs="+quotes"]
185+
----
186+
$ oc create secret generic -n openshift-logging <my-secret> \
187+
--from-file=tls.key=<your_key_file>
188+
--from-file=tls.crt=<your_crd_file>
189+
--from-file=ca-bundle.crt=<your_bundle_file>
190+
--from-literal=username=<your_username>
191+
--from-literal=password=<your_password>
192+
----
193+
194+
[NOTE]
195+
====
196+
Generic or opaque secrets are recommended for best results.
197+
====

0 commit comments

Comments
 (0)