Skip to content

Latest commit

 

History

History
24 lines (22 loc) · 644 Bytes

logging-create-secret-snip.adoc

File metadata and controls

24 lines (22 loc) · 644 Bytes

You can create a secret in the directory that contains your certificate and key files by using the following command:

$ oc create secret generic -n openshift-logging <my-secret> \
 --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>
Note

Use generic or opaque secrets for best results.