Add Existing Virtual Clusters
Virtual clusters created through the vcluster CLI can be imported into a project. This process will
automatically create a VirtualClusterInstance
resource in the specified project.
Importing virtual clusters can be accomplished via the UI or the CLI.
- UI
- CLI
Click on Clusters in the side bar to expand the sidebar.
Click on Clusters to see the list of clusters.
Click on the cluster containing the virtual cluster that you would like to import.
In the Cluster Management view, click the Virtual Clusters to view the list of virtual clusters.
Find the virtual cluster you would like to import in the list of virtual clusters. Click the drop down arrow next to the virtual cluster name. In the drop down menu click the Import button.
In the pop-up box, select the project you would like to import the virtual cluster into from the Select Project drop down box.
[Optional] provide a name for the new 'VirtualClusterInstance' resource, if you do not provide a name, vCluster Platform will use the name of the legacy virtual cluster.
Click the button.
vcluster platform add vcluster [vcluster-name] \
--cluster [cluster-name] \
--namespace [vcluster-namespace] \
--project [project-name]