Skip to content

Commit d769126

Browse files
committed
OSDOCS-3301:Adding web console secrets
1 parent e76b419 commit d769126

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * nodes/pods/nodes-pods-secrets.adoc
4+
5+
:_content-type: PROCEDURE
6+
[id="nodes-pods-secrets-creating-web-console-secrets_{context}"]
7+
= Creating a secret using the web console
8+
9+
You can create secrets using the web console.
10+
11+
.Procedure
12+
13+
. Navigate to *Workloads* -> *Secrets*.
14+
. Click *Create* -> *From YAML*.
15+
.. Edit the YAML manually to your specifications, or drag and drop a file into the YAML editor.
16+
For example:
17+
+
18+
[source,yaml]
19+
----
20+
apiVersion: v1
21+
kind: Secret
22+
metadata:
23+
name: example
24+
namespace: <namespace>
25+
type: Opaque <1>
26+
data:
27+
username: <username>
28+
password: <password>
29+
stringData: <2>
30+
hostname: my app.mydomain.com
31+
----
32+
<1> This example specifies an opaque secret; however, you may see other secret types such as service account token secret, basic authentication secret, SSH authentication secret, or a secret that uses Docker configuration.
33+
<2> Entries in the `stringData` map are converted to base64 and the entry will then be moved to the `data` map automatically. This field is write-only; the value will only be returned via the `data` field.
34+
35+
. Click *Create*.
36+
. Click *Add Secret to workload*.
37+
.. From the drop-down menu, select the workload to add.
38+
.. Click *Save*.
39+

nodes/pods/nodes-pods-secrets.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ include::modules/nodes-pods-secrets-creating-docker.adoc[leveloffset=+2]
6666

6767
* For more information on using secrets in pods, see xref:../../nodes/pods/nodes-pods-secrets.adoc#nodes-pods-secrets-creating_nodes-pods-secrets[Understanding how to create secrets].
6868
69+
include::modules/nodes-pods-secrets-creating-web-console-secrets.adoc[leveloffset=+2]
70+
6971
include::modules/nodes-pods-secrets-updating.adoc[leveloffset=+1]
7072

7173
include::modules/nodes-application-secrets-using.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)