|
7 | 7 |
|
8 | 8 | = Adding a secret, config map, or service account to a virtual machine |
9 | 9 |
|
10 | | -Add a secret, config map, or service account to a virtual machine by using the {product-title} web console. |
| 10 | +You add a secret, config map, or service account to a virtual machine by using the {product-title} web console. |
| 11 | + |
| 12 | +These resources are added to the virtual machine as disks. You then mount the secret, config map, or service account as you would mount any other disk. |
| 13 | + |
| 14 | +If the virtual machine is running, changes will not take effect until you restart the virtual machine. The newly added resources are marked as pending changes for both the *Environment* and *Disks* tab in the *Pending Changes* banner at the top of the page. |
11 | 15 |
|
12 | 16 | .Prerequisites |
13 | 17 |
|
14 | 18 | * The secret, config map, or service account that you want to add must exist in the same namespace as the target virtual machine. |
15 | 19 |
|
16 | 20 | .Procedure |
17 | 21 |
|
18 | | -. Click *Workloads* -> *Virtualization* from the side menu. |
| 22 | +. Click *Virtualization* -> *VirtualMachines* from the side menu. |
19 | 23 |
|
20 | | -. Click the *Virtual Machines* tab. |
| 24 | +. Select a virtual machine to open the *VirtualMachine details* page. |
21 | 25 |
|
22 | | -. Select a virtual machine to open the *Virtual Machine Overview* screen. |
| 26 | +. In the *Environment* tab, click *Add Config Map, Secret or Service Account*. |
23 | 27 |
|
24 | | -. Click the *Environment* tab. |
| 28 | +. Click *Select a resource* and select a resource from the list. A six character serial number is automatically generated for the selected resource. |
25 | 29 |
|
26 | | -. Click *Select a resource* and select a secret, config map, or service account from the list. A six character serial number is automatically |
27 | | -generated for the selected resource. |
| 30 | +. Optional: Click *Reload* to revert the environment to its last saved state. |
28 | 31 |
|
29 | 32 | . Click *Save*. |
30 | 33 |
|
31 | | -. Optional. Add another object by clicking *Add Config Map, Secret or Service Account*. |
32 | | - |
33 | | -[NOTE] |
34 | | -==== |
35 | | -.. You can reset the form to the last saved state by clicking *Reload*. |
36 | | -
|
37 | | -.. The *Environment* resources are added to the virtual machine as disks. You can mount the secret, config map, or service account as you would mount any other disk. |
38 | | -
|
39 | | -.. If the virtual machine is running, changes will not take effect until you restart the virtual machine. The newly added resources are marked as pending changes |
40 | | -for both the *Environment* and *Disks* tab in the *Pending Changes* banner at the top of the page. |
41 | | -
|
42 | | -==== |
43 | | - |
44 | 34 | .Verification |
45 | 35 |
|
46 | | -. From the *Virtual Machine Overview* page, click the *Disks* tab. |
47 | | - |
48 | | -. Check to ensure that the secret, config map, or service account is included in the list of disks. |
49 | | - |
50 | | -. Optional. Choose the appropriate method to apply your changes: |
51 | | - |
52 | | -.. If the virtual machine is running, restart the virtual machine by clicking *Actions* -> *Restart Virtual Machine*. |
| 36 | +. On the *VirtualMachine details* page, click the *Disks* tab and verify that the secret, config map, or service account is included in the list of disks. |
53 | 37 |
|
54 | | -.. If the virtual machine is stopped, start the virtual machine by clicking *Actions* -> *Start Virtual Machine*. |
| 38 | +. Restart the virtual machine by clicking *Actions* -> *Restart*. |
55 | 39 |
|
56 | 40 | You can now mount the secret, config map, or service account as you would mount any other disk. |
0 commit comments