A powerful Kubernetes platform for managing virtual clusters, multi-tenancy, and cluster sharing
vCluster Platform provides a single pane of glass that lets you connect your clusters, deploy virtual clusters, configure user access, and reduce operational costs. Built on top of Kubernetes, it enables teams to efficiently share cluster resources while maintaining strong isolation and self-service capabilities.
- Projects: Highest organizational unit for logically grouping resources by team or division with role-based access controls (RBAC)
- Clusters: Connect to and manage multiple physical Kubernetes clusters, deploying spaces, virtual clusters, and apps as needed
- Virtual Clusters: Lightweight virtual Kubernetes clusters that run inside a namespace within the host physical cluster - ideal for development, testing, and production workloads
- Apps: Define and deploy applications with configurable parameters across clusters, spaces, and virtual clusters using Kubernetes Manifests, bash scripts, Helm charts, and more
- Cost Reduction Tools:
- Sleep Mode: Put Kubernetes namespaces to sleep (sets
replicas: 0for all replica-controlled resources), reducing cloud costs by up to 70% - Auto Delete: Configure auto-deletion for inactive virtual clusters
- Inactivity Detection: Automatically detect and respond to namespace inactivity
- Sleep Mode: Put Kubernetes namespaces to sleep (sets
- Multi-Tenancy: Granular RBAC at project, space, and virtual cluster levels
- GitOps Ready: All resources are defined as Custom Resource Definitions (CRDs) for GitOps workflows
- RESTful API: Comprehensive OpenAPI 3.0-compliant API for programmatic access and automation
- Quick Start
- Architecture
- Installation & Configuration
- API Documentation
- Helm Charts
- Configuration
- Automatic Synchronization
- Testing
- Contributing
- License
- Resources
- Support
- Next Steps
- Kubernetes cluster (v1.20+) with administrator access
- Helm v3.10+ installed (Helm Installation Guide)
- kubectl installed and configured (Install kubectl)
- License Key: A LoftLabs license key is required (contact sales@loft.sh for a license or trial)
- Pod Resources:
- Requests:
memory: 256Mi,cpu: 200m - Limits:
memory: 4Gi,cpu: 2
- Requests:
- Network Ports: Ensure the following ports are open:
8443β API service extension for cluster communication (v1.cluster.loft.sh)9443β Webhook validation and enforcement (loft webhook)9444β Management API for platform administration (v1.management.loft.sh)9090β Prometheus metrics proxy for cost monitoring
- Egress Traffic: Allow egress to
https://admin.loft.sh/*(HTTPS, port 443) for license retrieval and validation
The vCluster CLI is the preferred method for deploying the platform. See the Quick Start Guide for detailed instructions.
# Download and install vCluster CLI
# macOS (Intel/AMD)
curl -L -o vcluster "https://github.com/loft-sh/vcluster/releases/latest/download/vcluster-darwin-amd64" && \
sudo install -c -m 0755 vcluster /usr/local/bin && rm -f vcluster
# Verify installation
vcluster --version
# Deploy the platform
vcluster platform startThe CLI automatically opens the UI in your browser and logs you in. You'll be prompted to create an administrator user.
See the Helm Installation Guide for detailed instructions.
# Add the Loft Helm repository
helm repo add loft https://charts.loft.sh
helm repo update
# Deploy vCluster Platform
RELEASE_NAME=vcluster-platform
RELEASE_NAMESPACE=vcluster-platform
helm upgrade $RELEASE_NAME vcluster-platform \
--install \
--repo https://charts.loft.sh/ \
--namespace $RELEASE_NAMESPACE \
--create-namespace \
--set admin.username=admin \
--set admin.password=your-secure-passwordFor GitOps deployments, see the ArgoCD Installation Guide for managing the platform deployment with ArgoCD or other GitOps tools.
After installation, you can access the platform in several ways:
-
Loft Router (Default): If
loftHostis not configured, a random domain is automatically provisioned. Retrieve it with:kubectl get secret loft-router-domain \ -n vcluster-platform \ -o jsonpath="{.data.domain}" | base64 --decode
-
Custom Ingress: If you configured an ingress, access via your custom domain
-
Port Forward: For local access:
kubectl port-forward -n vcluster-platform svc/vcluster-platform 8080:80
If not set in your values.yaml, the default credentials are:
- Username:
admin - Password:
my-password
β οΈ Security Note: It is strongly recommended to change these default credentials immediately after first login.
vcluster Platform consists of several key components:
- Platform Controller: Core orchestration engine managing virtual clusters, accounts, and resources
- API Server: RESTful API server exposing OpenAPI-compliant endpoints
- Webhook Server: Validating and mutating webhooks for resource management
- Agent: Lightweight agent deployed to managed clusters for multi-cluster operations
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β vcluster Platform β
β β
β ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ β
β β API Server β β Controller β β Webhook β β
β ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ β
β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Virtual Cluster Management β β
β β β’ Create/Delete Virtual Clusters β β
β β β’ Sleep/Wake Operations β β
β β β’ Resource Quotas & Limits β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Multi-Tenancy & Isolation β β
β β β’ Account Management β β
β β β’ Namespace Templates β β
β β β’ RBAC & Security Policies β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
When deploying with Helm, it's recommended to explicitly set these values:
admin:
username: my-own-username
password: my-secure-password
config:
audit:
enabled: true
loftHost: vcluster-platform.mytld.com # Publicly resolvable hostname
ingress:
enabled: true
host: vcluster-platform.mytld.com
tls:
enabled: true
# Environment variables for proxy configuration (if needed)
env:
NO_PROXY: localhost,127.0.0.1,.svc,.svc.cluster.local,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
no_proxy: localhost,127.0.0.1,.svc,.svc.cluster.local,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16vCluster Platform provides a hosted domain service called Loft Router that enables you to trial the platform using a hosted domain. This is enabled by default and particularly useful when you cannot use your own DNS.
To disable Loft Router, either:
- Explicitly set
config.loftHostandconfig.devPodSubDomain, or - Set the environment variable
DISABLE_LOFT_ROUTER=true
For environments without internet access, see the Air-Gapped Installation Guide for detailed instructions on:
- Setting up a private OCI-compliant registry
- Populating the registry with container images and Helm charts
- Configuring vCluster Platform and agents for offline use
See chart/values.yaml for all available configuration options.
vCluster Platform exposes a comprehensive RESTful API that is fully OpenAPI 3.0 compliant. The API documentation is automatically generated and synced to this repository.
- OpenAPI Specification:
api/openapi-spec/openapi.yaml - Swagger JSON:
api/openapi-spec/swagger.json - Swagger Paths:
api/openapi-spec/swagger.paths.json
The API provides endpoints for:
- Management API (
/apis/management.loft.sh/v1/): Core platform management operations - Cluster API (
/apis/v1.cluster.loft.sh/): Cluster communication and management - Virtual Cluster API: Virtual cluster lifecycle management
- Project API: Project and resource management
- User & Access API: User management and access control
# Get API versions
curl https://your-vcluster-platform/api/apis/
# List virtual clusters
curl -H "Authorization: Bearer $TOKEN" \
https://your-vcluster-platform/api/apis/management.loft.sh/v1/virtualclustersFor complete API reference, see the API Documentation in the official docs.
The Helm charts for vCluster Platform are automatically synced to this repository. The chart includes:
- Deployment: Main platform controller and API server
- Service: Kubernetes service for accessing the platform
- Ingress: Optional ingress configuration with TLS support
- RBAC: Service accounts, roles, and role bindings
- Webhooks: Validating and mutating webhooks for resource management
- Certificates: TLS certificate management with cert-manager integration
- Monitoring: ServiceMonitor for Prometheus integration
- Pod Disruption Budget: High availability configuration
- Persistent Volume Claims: Optional persistence for platform data
chart/
βββ Chart.yaml # Chart metadata
βββ values.yaml # Default configuration values
βββ templates/ # Kubernetes manifests
β βββ deployment.yaml
β βββ service.yaml
β βββ ingress.yaml
β βββ ingress-wakeup-service.yaml
β βββ rbac/
β β βββ clusterrolebinding.yaml
β βββ webhook.yaml
β βββ apiservice.yaml
β βββ servicemonitor.yaml
β βββ pdb.yaml
β βββ pvc.yaml
β βββ secret.yaml
β βββ serviceaccount.yaml
β βββ cert-issuer/
β βββ issuer.yaml
βββ tests/ # Chart tests
βββ deployment_test.yaml
βββ pdb_test.yaml
βββ secret_test.yaml
To retrieve all available versions of the platform Helm chart:
helm search repo loft/vcluster-platform --versionsYou can customize your installation by creating a custom values file:
# custom-values.yaml
admin:
username: myadmin
password: mypassword
config:
loftHost: vcluster-platform.example.com
audit:
enabled: true
ingress:
enabled: true
host: vcluster-platform.example.com
tls:
enabled: true
resources:
limits:
memory: 8Gi
cpu: "4"Then install with:
helm upgrade vcluster-platform vcluster-platform \
--install \
--repo https://charts.loft.sh/ \
--namespace vcluster-platform \
--create-namespace \
--values custom-values.yamlNote: vCluster Platform exclusively supports the default secret backend for storing Helm releases. Alternative HELM_DRIVER configurations (such as configmap or sql) are not supported.
Platform configuration can be managed via the config section in values.yaml or through the UI under Admin > Config. Key configuration options include:
config:
audit:
enabled: true
loftHost: vcluster-platform.example.com # Publicly resolvable hostname
# Additional configuration optionsFor a detailed list of all available configuration options, see the Configuration Documentation.
vCluster Platform can be configured via environment variables in the env section:
env:
# Proxy configuration (if using proxies)
NO_PROXY: localhost,127.0.0.1,.svc,.svc.cluster.local,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
no_proxy: localhost,127.0.0.1,.svc,.svc.cluster.local,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
HTTPS_PROXY: "https://proxy.example.com:8080"
HTTP_PROXY: "http://proxy.example.com:8080"
# Disable Loft Router
DISABLE_LOFT_ROUTER: "true"vCluster Platform can be managed via GitOps tools like ArgoCD. Export your Helm configuration and store it in a Git repository for version-controlled deployments.
This repository automatically syncs:
- API Documentation: OpenAPI specifications are automatically generated and updated
- Helm Charts: Chart templates and values are kept in sync with the platform releases
- Swagger Specs: Swagger JSON and path definitions are regenerated on updates
These components are maintained automatically, ensuring the repository always reflects the latest platform capabilities.
The Helm chart includes test templates that can be executed:
# Run chart tests
helm test vcluster-platform -n vcluster-platformContributions are welcome! Please see our contributing guidelines for details on:
- Code of conduct
- Development setup
- Pull request process
- Issue reporting
See LICENSE file for details.
- Official Documentation: vCluster Platform Docs
- Installation Guides:
- API Reference: See
api/openapi-spec/directory or Use API Documentation - Helm Chart: See
chart/directory or GitHub Repository - Configuration Reference: Configuration Options
For questions, issues, or feature requests:
- Documentation: Check the official documentation
- Troubleshooting: See the TSNet Connectivity Troubleshooting Guide
- API Reference: Review the API specifications in
api/openapi-spec/ - License & Sales: Contact sales@loft.sh for licensing questions
After installing vCluster Platform:
- Create Virtual Clusters: Start creating virtual clusters immediately - you're automatically part of a project called "Default Project"
- Learn About Projects: Understand how resources can be grouped together into different projects
- Explore Templates: Learn how to use templates to control what type of resources can be created
- Add Host Clusters: Connect additional host clusters to the platform
- Configure Sleep Mode: Set up sleep and wakeup functionality to reduce costs
For detailed guides, see the official documentation.
Note: This repository contains automatically synced API documentation and Helm charts. The platform codebase is maintained separately. All API specs, Swagger definitions, and Helm chart templates are kept up-to-date automatically to reflect the latest platform capabilities.