Import vClusters
Virtual clusters created through the vCluster cli or prior to vCluster.Pro 3.0 can be imported into a project. This process will automatically create a 'VirtualClusterInstance' resource, and cause it to be shown under the requested project.
Importing vClusters and legacy vCluster.Pro virtual clusters can be accomplished via the vCluster.Pro UI or the vCluster.Pro CLI.
- UI
- CLI
- Select the Clusters field on the left menu bar.
- In the main work pane, click on the cluster containing the legacy virtual cluster you would like to import.
- In the Cluster Management view, click the button on the top navigation tabs bar.
- 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.Pro will use the name of the legacy virtual cluster.
- Click the button.
vcluster pro import [vcluster-name] \
--cluster [cluster-name] \
--namespace [vcluster-namespace] \
--project [project-name]
List Legacy Virtual Clusters
You can list legacy virtual clusters via the cli by running the vcluster pro list
--show-legacy
command.