This guide provides instructions on how to create a Virtual site by assigning labels. Virtual site provides mechanism to perform operations on a group of sites reducing the need to repeat the same set of operations for each site. To know more about virtual site and labels, see Virtual Site and Labels respectively.
Using the instructions provided in this guide, you can assign labels to your sites and group them by creating a virtual site.
The following prerequisites apply:
- Note: If you do not have an account, see Create a VES Account.
- Note: If you do not have a registered site, see How-to Create a Site.
The following shows a label assignment and creation of a virtual site workflow:
Creating virtual site includes performing the following sequence of actions:
|Create and Assign a Custom Label||Create a new label or use an existing label to assign it to a site.|
|Create a Virtual Site||Create a virtual site using the label expression. The label created in the previous phase is used to match the site and group it under the virtual site.|
Note: The keys and labels can be system-provided or user-defined. For more details on labels, click here.
Log in to Volterra console portal and perform the following:
Step 1: Select the
system namespace and the required site from site list. Click
... on the right end of your site and click
Edit to load the site edit form. Navigate to
Labels’ and provide a Key. You can select a pre-defined key or create your own key. This example associates the
site-select key with the site
Step 2: Enter a value for the corresponding key created in Step 1. This example associates a value demo with a key site-select.
Step 3: Select the
system namespace and the required site from the site list. Using the dropdown option, select
metadata and expand
metadatasection contains all labels associated with the site. As sites are registered, Volterra automatically populates some labels such as
hw-model, etc. The label site-select:demo created in this example is associated with the site volterra-demo-site-1.
You can determine the existing labels assigned to a site by checking the site schema from the Volterra Console or using APIs.
Step 1: Navigate to a specific namespace or
shared namespace. Select
Manage and click on
Virtual Sites in the options pane.
Step 2: Click
Add virtual site to load virtual site creation form.
Step 3: Enter required fields as shown in the following example.
Step 4: Frame the label expressions to group Volterra edge cloud sites. This example shows selecting sites that have the site-select:demo label assigned.
This creates a Virtual site which maps to all the sites with the site-select:demo label.
Note: In this example, entering site-select:demo (key:value pair) in the expressions field creates a virtual site that maps to the volterra-demo-site-1 site.
Step 5: Click
Add virtual site button in the form to complete creation of the virtual site.