Overview
This quickstart guide will take you from zero to a working virtual cluster in less than 5 minutes. You’ll install the vCluster CLI, create your first virtual cluster, connect to it, deploy a test workload, and clean up.Try Without Installing
No Kubernetes cluster available? Try vCluster instantly in your browser:Try on Killercoda
Launch an interactive vCluster tutorial in your browser—no installation required
Step-by-Step Guide
Install the vCluster CLI
Install the vCluster CLI using your preferred package manager.Verify the installation:
- Homebrew (macOS/Linux)
- Direct Download (Linux/macOS)
- Windows
Verify Host Cluster Access
Ensure You should see your cluster nodes. If not, configure
kubectl is configured and can access your Kubernetes cluster:kubectl to connect to your cluster first.Example Output
Example Output
Create Your First Virtual Cluster
Create a virtual cluster named What happens during creation:
my-vcluster in the team-x namespace:The
--namespace flag is optional. If omitted, vCluster creates a namespace named vcluster-{vcluster-name}.- vCluster creates the namespace if it doesn’t exist
- Deploys the vCluster control plane via Helm
- Waits for the virtual cluster to become ready
- Automatically connects your
kubectlto the new virtual cluster
Expected Output
Expected Output
Troubleshooting: Creation Stuck or Fails
Troubleshooting: Creation Stuck or Fails
If the virtual cluster creation hangs or fails:Check pod status:View logs:Common issues:
- Insufficient resources: Ensure your cluster has enough CPU/memory
- Image pull errors: Check your internet connection and container registry access
- RBAC issues: Verify you have permissions to create resources in the namespace
Explore Your Virtual Cluster
Your
Notice that the virtual cluster has its own set of namespaces, completely isolated from the host cluster.
kubectl context is now pointing to the virtual cluster. Let’s explore it:Expected Output
Expected Output
Deploy a Test Workload
Let’s deploy a simple nginx application to verify everything works:
These resources exist in your virtual cluster. Behind the scenes, the actual nginx pod runs on the host cluster’s nodes, but it’s completely managed through the virtual cluster’s API.
Expected Output
Expected Output
Want to see the synced resources on the host? Disconnect from the virtual cluster and check:You’ll see the synced nginx pod with a modified name.
Test Cluster-Scoped Resources
One of vCluster’s key benefits is support for cluster-scoped resources. Let’s create a custom namespace:You now have a namespace inside your virtual cluster—something you couldn’t do with traditional namespace-based multi-tenancy.
Understand Context Switching
The vCluster CLI automatically manages your You’ll see something like
kubectl context. Let’s see how:vcluster_my-vcluster_team-x_kind-kind.List Your Virtual Clusters
You can list all virtual clusters across namespaces:
Use JSON output for scripting:
Expected Output
Expected Output
What You’ve Learned
Congratulations! You’ve successfully:- ✅ Installed the vCluster CLI
- ✅ Created a virtual Kubernetes cluster
- ✅ Connected to it with kubectl
- ✅ Deployed workloads to the virtual cluster
- ✅ Created cluster-scoped resources (namespaces)
- ✅ Managed contexts between host and virtual clusters
- ✅ Cleaned up resources
Next Steps
Now that you understand the basics, explore more advanced topics:Architecture Deep Dive
Learn how vCluster works under the hood with different deployment modes
Configuration Options
Customize vCluster with values files, sync settings, and resource configurations
High Availability
Deploy production-ready vClusters with multiple replicas and external databases
Resource Syncing
Control which resources sync between virtual and host clusters
CLI Reference
Explore all available vCluster CLI commands and flags
Use Cases
Discover how organizations use vCluster for multi-tenancy, GPU platforms, and more
Common Workflows
Creating vClusters with Custom Configuration
Create avcluster.yaml file to customize your virtual cluster:
vcluster.yaml
Using Different Kubernetes Versions
Run a different Kubernetes version in your virtual cluster:Upgrading a Virtual Cluster
Upgrade an existing virtual cluster:Quick Reference
Here’s a cheat sheet of common commands:Getting Help
Need assistance?- Command help: Run
vcluster <command> --helpfor detailed usage - Documentation: Browse the complete documentation
- Community Slack: Join 5K+ users for real-time help
- GitHub Issues: Report bugs or request features on GitHub
Looking for enterprise features like SSO, multi-cluster management, and advanced RBAC? Check out Loft vCluster Platform.