Virtual Cluster Templates
Once you have created a virtual cluster template you can then refer to that template when creating a new virtual cluster. All template configurations will be automatically applied to the newly created virtual cluster. Virtual clusters referring to templates can be created in the UI or via the vCluster CLI.
- UI
- CLI
From the project drop-down menu (top left corner), select the project you'd like to create the virtual cluster in.
Click on Virtual Clusters.
Click the button.
In the pop-up box, select your template from the template drop down menu.
[Optional] Select the cluster in which to create the virtual cluster.
[Optional] Add a name for your virtual cluster.
Click the to continue.
Retrieve a kube-context for a virtual cluster using the CLI:
vcluster connect [vcluster-name] --project [project-name] --manager platform
When creating a virtual cluster from the vCluster CLI, you will need to provide the name of the project in which to deploy the virtual cluster, and the name of template to use:
vcluster create [vcluster-name] --project [project-name] --template [template-name] --manager platform
If you omit specifying a template, vCluster Platform will automatically select one for you (if there is a default template in the project specified) or prompt you to select a template.
Running vcluster create
will automatically add a kube-context to your kube-config file,
so you can immediately run kubectl
commands right after creating a virtual cluster.