mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
38 lines
1.7 KiB
Plaintext
38 lines
1.7 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * virt/virtual_machines/virt-edit-vms.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="virt-adding-secret-configmap-service-account-to-vm_{context}"]
|
|
|
|
= Adding a secret, config map, or service account to a virtual machine
|
|
|
|
[role="_abstract"]
|
|
You can add a secret, config map, or service account to a virtual machine by using the {product-title} web console.
|
|
|
|
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.
|
|
|
|
If the virtual machine is running, changes do not take effect until you restart the virtual machine. The newly added resources are marked as pending changes at the top of the page.
|
|
|
|
.Prerequisites
|
|
|
|
* The secret, config map, or service account that you want to add must exist in the same namespace as the target virtual machine.
|
|
|
|
.Procedure
|
|
|
|
. Click *Virtualization* -> *VirtualMachines* from the side menu.
|
|
. Select a virtual machine to open the *VirtualMachine details* page.
|
|
. Click *Configuration* -> *Environment*.
|
|
. Click *Add Config Map, Secret or Service Account*.
|
|
. Click *Select a resource* and select a resource from the list. A six character serial number is automatically generated for the selected resource.
|
|
. Optional: Click *Reload* to revert the environment to its last saved state.
|
|
. Click *Save*.
|
|
|
|
.Verification
|
|
|
|
. On the *VirtualMachine details* page, click *Configuration* -> *Disks* and verify that the resource is displayed in the list of disks.
|
|
|
|
. Restart the virtual machine by clicking *Actions* -> *Restart*.
|
|
|
|
You can now mount the secret, config map, or service account as you would mount any other disk.
|