mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
24 lines
987 B
Plaintext
24 lines
987 B
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * rosa_learning/deploying_application_workshop/learning-deploying-configmaps-secrets-env-var.adoc
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="learning-deploying-configmaps-secrets-envvar-secrets_{context}"]
|
|
= Configuration using secrets
|
|
|
|
[role="_abstract"]
|
|
Kubernetes `Secret` objects allow you to store and manage sensitive information, such as passwords, OAuth tokens, and SSH keys. Putting this information in a secret is safer and more flexible than putting it in plain text into a pod definition or a container image.
|
|
|
|
.Procedure
|
|
|
|
* In the OSToy application, in the left menu, click *Secrets*, displaying the contents of the secrets available to the OSToy application. The code snippet shows an example of a secret configuration:
|
|
+
|
|
*For example*:
|
|
+
|
|
[source,text]
|
|
----
|
|
USERNAME=my_user
|
|
PASSWORD=VVNFUk5BTUU9bXlfdXNlcgpQQVNTV09SRD1AT3RCbCVYQXAhIzYzMlk1RndDQE1UUWsKU01UUD1sb2NhbGhvc3QKU01UUF9QT1JUPTI1
|
|
SMTP=localhost
|
|
SMTP_PORT=25
|
|
----
|