Connect a volume to a container by adding it to a template.
Verify that you have a template available. If not, you must first create one.
Verify that you have container administrator, container architect, or IaaS administrator role privileges.
Verify that at least one host is configured and available for container volume configuration.
- Log in to vRealize Automation.
- Click the Containers tab.
- Click Templates in the left pane.
An array of icons displays the templates and images that are available for provisioning.
- (Optional) Modify the view to show only templates by clicking View: Templates in the upper right header above the icons.
- Click Edit in the upper-right section of the template that you want to customize.
The Edit Template page appears, displaying the container icons, including a blank icon with a plus-sign.
- Hover the cursor over the blank icon with the plus sign until the Add Volume icon appears.
- Click the Add Volume icon.
- Add an existing volume or create and add a new volume.
Add an existing volume.
Click the Existing check box.
Click inside the Name field to display a list of existing volumes.
Select the volume you want to use and click Save.
Configure and add a new volume.
Enter a name for the volume.
In the Driver text box, enter the driver of the volume plug-in you want to use. If you are not using an external storage system, enter local.
To add more detailed configuration settings, click the Advanced check box.
The Add Volume panel disappears and the added volume appears as a horizontal icon below the container icons in the Edit Template page. A volume icon also displays on the bottom border of the container icons.
- Connect the volume to a container, by dragging the volume connector icon from the container to any point on the horizontal icon representing the volume.
- (Optional) Click on the container path to change the location where the volume is mounted.