Create a Virtual Site
On This Page:
This guide provides instructions on how to create a virtual site by assigning labels. A virtual site provides a mechanism to perform operations on a group of sites, reducing the need to repeat the same set of operations for each site. To learn more about virtual sites and labels, see Virtual Site and Labels, respectively.
You can use virtual sites to deploy applications, discover service endpoints, and advertise services across a number of sites selected per the site selection criteria of the virtual site.
Using the instructions provided in this guide, you can assign labels to your sites and group them together to create a virtual site.
A registered site in the enterprise tenant. If you do not have a registered site, see Site Management.
The following shows a label assignment and creation of a virtual site workflow:
Creating a 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 provided by the system or can be user-defined. For more information on labels, see Labels.
Create and Assign a Custom Label
Perform these steps to create and assign a custom virtual site label:
Step 1: Navigate to the list of sites.
- Log into F5® Distributed Cloud Console (Console) and click
Cloud and Edge Sites.
Find your site and then click
Step 2: Enter a value for the corresponding key created in Step 1.
Navigate to the
Labelsfield and enter a key. You can select a pre-defined key or create your own key.
Step 3: View the newly created custom label.
Navigate to your site from
Site Listand expand the metadata JSON section.
"labels"to view the newly created site label.
Note: The metadata section contains all labels associated with your site. As sites are registered, Distributed Cloud Services automatically populates some labels, such as
hw-model, etc. You can determine the existing labels assigned to your site by checking the site schema from Console or using APIs.
Create a Virtual Site
Step 1: Start creating the virtual site.
- In Console, click
Navigate to your desired namespace.
Add virtual siteto load the creation form.
Step 2: Enter the required information.
Namefield, enter a virtual site name.
Site Typesection, select a site type from the drop-down menu.
Step 3: Frame the label expressions to group sites.
Selector Expressiondrop-down menu, click
Select the label expression.
Step 4: Complete creating virtual site.
Save and Exit.