Skip to main content
Version: 1.15

Virtual Cluster Templates

Virtual Cluster Templates can be used to create different virtual cluster profiles or set default options for virtual clusters in connected clusters.

Workflows

Create a Virtual Cluster Template

Navigate to Virtual Clusters > Virtual Cluster Templates. Click on the 'Add Virtual Cluster Template' button.

loft Virtual Cluster Templates
Add a virtual cluster template

In the view you can modify the following sections:

  • Configuration: the default virtual cluster metadata, version and values that should be used to create a new virtual cluster. In addition, you can define apps here that should get deployed into the virtual cluster on creation. You can also specify in which namespaces those apps should get deployed.
  • Space Template: if a new space is created for the virtual cluster, this is the space template that is used to create the space.
  • Access To Virtual Cluster Template: additional users and teams that should be able to access this virtual cluster template in addition to all existing RBAC rules

Use a Virtual Cluster Template

You can create a virtual cluster from a template either through the Loft UI or the CLI.

Navigate to virtual clusters and click on the 'Create Virtual Cluster' button. In the drawer you can select a virtual cluster template or based on the cluster default a template will be preselected automatically.

loft Virtual Cluster Templates
Select a virtual cluster template

Afterwards you can still change the desired virtual cluster configuration and press 'Create' to create the virtual cluster.

Set Default Virtual Cluster Template

Navigate to the Clusters view and click on 'Edit'. Select a virtual cluster template that should be used as default template for creating new virtual clusters in that specific connected cluster. Then press update to apply the changes.

loft Virtual Cluster Templates
Set a default virtual cluster template

Delete Virtual Cluster Templates

You can either delete a virtual cluster template through the Loft UI or use kubectl. Deleting a virtual cluster template will not delete any virtual clusters that were created by this template.

Navigate to Virtual Clusters > Virtual Cluster Templates. Then click on the 'Delete' button.