Manually Configure a Virtual Cluster
Each virtual cluster that is created in the platform belongs to a project. There are two primary ways which virtual clusters can be created: from a template or manually.
Virtual clusters created from a template settings. Standard project users (non project admins) are only allowed to create virtual clusters from templates that the project admin has allowed. This ensures that virtual clusters in each project adhere to the standards set by the project admin.
Project admins and platform admins can create virtual clusters manually, that is without a template.
Create Without Template
Only project admins or platform admins can create a virtual cluster without a template:
- Form
- YAML
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 popup, confirm that the virtual cluster template field is empty.
[Optional] Select the cluster in which to create the virtual cluster.
[Optional] Add a name for your virtual cluster.
Click the to continue.
In the drawer that appears from the right, update the virtual cluster with any additional desired configuration options.
The Definition tab contains settings relating to the virtual cluster deployment itself, here you can provide Helm values to be used when deploying the virtual cluster, select the virtual cluster distribution (e.g. k8s (default), k3s, k0s), as well as configurations for sleep mode and ingress access.
Objects is where you can define Kubernetes manifests that should be created in the virtual cluster.
Apps allows you to select any pre-defined 'applications' (e.g. Cert Manager) that should be installed into the virtual cluster.
Permissions are additional access rules that can be defined for the virtual cluster instance.
Advanced Options allow for advanced configuration different resources.
tipAll configuration options in a vCluster defined in the
vcluster.yaml
can be manually configured when creating any virtual cluster. Read more about thevcluster.yaml
configuration options.Click the button.
Retrieve a kube-context for a virtual cluster using the CLI:
vcluster connect [vcluster-name] --project [project-name] --driver platform
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 popup, confirm that the virtual cluster template field is empty.
[Optional] Select the cluster in which to create the virtual cluster.
[Optional] Add a name for your virtual cluster.
Click the to continue.
In the drawer that appears from the right, click the Show YAML at the bottom left corner of the drawer.
Configure your virtual cluster with options in the
values
section. Read more about what values can be used as it is the equivalent of the vcluster.yaml.Click the button.
Retrieve a kube-context for a virtual cluster using the CLI:
vcluster connect [vcluster-name] --project [project-name] --driver platform