Overview
vCluster provides a comprehensive CLI for managing the lifecycle of your virtual clusters. This guide covers the essential day-to-day operations you’ll need to effectively manage your vClusters.Listing Virtual Clusters
View all virtual clusters in your environment to get an overview of your deployment.Basic List Command
- Virtual cluster name
- Namespace
- Status (Running, Sleeping, etc.)
- Age
- Connection status
List Options
- JSON Output
- Specific Namespace
- Specific Driver
Describing a Virtual Cluster
Get detailed information about a specific virtual cluster.Output Formats
YAML Output
Get the full configuration in YAML format:This shows the complete vCluster configuration including all runtime settings.
Connecting to a Virtual Cluster
Switch your kubectl context to interact with a virtual cluster.- Creates a port-forward to the virtual cluster’s API server
- Updates your kubeconfig with a new context
- Switches to the new context automatically
- You can now use
kubectlcommands against the virtual cluster
The connection requires the port-forward to remain active. Keep the terminal window open or run with
--background flag.Disconnecting from a Virtual Cluster
Return to your host cluster context.Deleting a Virtual Cluster
Remove a virtual cluster and its resources.Standard Deletion
Force Deletion
If a virtual cluster is stuck or not responding:Deletion with Cleanup
Platform Integration
When using vCluster Platform, specify the project context:Driver Selection
vCluster supports multiple drivers for different deployment modes:- helm: Direct Helm-based deployment (default)
- platform: vCluster Platform-managed deployment
- docker: Docker-based local development
Common Management Tasks
Check Virtual Cluster Status
Check Virtual Cluster Status
View Virtual Cluster Logs
View Virtual Cluster Logs
Update Virtual Cluster Configuration
Update Virtual Cluster Configuration
-
Export current configuration:
- Edit the configuration file
-
Apply changes:
Check Resource Usage
Check Resource Usage
View pods in the host namespace:View resource requests/limits:
Troubleshooting
Virtual Cluster Not Responding
Virtual Cluster Not Responding
Symptoms: Commands hang or timeoutSolutions:
-
Check pod status:
-
Check logs for errors:
-
Restart the virtual cluster:
Next Steps
Pause & Resume
Learn how to pause virtual clusters to save resources
Snapshots
Create point-in-time snapshots of your virtual clusters
Monitoring
Set up monitoring for your virtual clusters
Troubleshooting
Resolve common issues