Overview
Pausing a virtual cluster stops it and frees all computing resources while preserving the cluster state. This is useful for:- Cost savings: Stop development/test clusters outside business hours
- Resource management: Free up cluster capacity temporarily
- Environment control: Prevent accidental changes during maintenance
Persistent data (PVCs, ConfigMaps, Secrets) is preserved during pause. Only running workloads are stopped.
Pausing a Virtual Cluster
Basic Pause Command
Delete Workloads
All workloads created through the virtual cluster (Pods, Deployments, etc.) are deleted from the host cluster.
Preserve State
Persistent resources remain:
- Persistent Volume Claims
- Services
- ConfigMaps and Secrets
- Network policies
Pause Alias
You can also use thesleep alias:
Resuming a Virtual Cluster
Basic Resume Command
Resume Alias
You can also use thewakeup alias:
Platform-Managed Sleep
When using vCluster Platform, you can configure automatic sleep policies.Prevent Wake-up
Pause a virtual cluster and prevent automatic wake-up for a specific duration:- Running
vcluster resumemanually - Removing the sleep annotation from the namespace
- Using the vCluster Platform UI
Infinite Sleep
To pause indefinitely until manually resumed:Driver-Specific Behavior
- Helm Driver
- Platform Driver
- Docker Driver
- Pauses locally managed virtual clusters
- Scales StatefulSet to zero
- Removes synced workloads from host namespace
Verification
Check Sleep Status
After pausing, verify the virtual cluster is sleeping:Verify Resource Release
Check that pods are scaled down:Verify State Preservation
Check that persistent resources remain:Use Cases
Development Environment Management
Development Environment Management
Scenario: Pause dev environments outside working hours to save costs.Implementation:Create a scheduled job to pause clusters at end of day:Resume in the morning:
Staging Environment Control
Staging Environment Control
Scenario: Keep staging environments paused until deployment time.Implementation:Integrate with CI/CD pipeline:
Resource Quota Management
Resource Quota Management
Scenario: Temporarily free resources during peak usage times.Implementation:
Cost Optimization
Cost Optimization
Scenario: Automatically pause idle clusters to reduce cloud costs.Implementation:Use vCluster Platform’s automatic sleep feature based on inactivity:Configure in
vcluster.yaml:Troubleshooting
Resume Fails with Platform Driver Required Error
Resume Fails with Platform Driver Required Error
Error Message:Cause: The virtual cluster was paused by vCluster Platform, not locally.Solution:Resume using the platform driver:Or set platform as default driver:
Workloads Not Recreating After Resume
Workloads Not Recreating After Resume
Symptoms: Virtual cluster resumes but workloads don’t start.Diagnosis:
-
Check virtual cluster pod status:
-
Check virtual cluster logs:
-
Connect to virtual cluster and check:
- Wait a few minutes for synchronization to complete
- Check for resource quota issues in the host namespace
- Verify network policies aren’t blocking synced resources
Pause Command Hangs
Pause Command Hangs
Symptoms: Solutions:
vcluster pause command doesn’t complete.Diagnosis:Check if the virtual cluster is accessible:-
Force delete workloads manually:
-
Scale down the StatefulSet:
- Use platform UI if using platform driver
Best Practices
Automate Sleep Schedules
Use Platform sleep policies or cron jobs to automatically pause clusters during off-hours.
Test Resume Process
Regularly test the resume process to ensure workloads recreate correctly.
Monitor Resume Times
Track how long it takes for clusters to fully resume and optimize as needed.
Document Dependencies
Document any external dependencies that need special handling during pause/resume cycles.
Next Steps
Snapshots
Learn how to create snapshots before pausing for additional safety.