This directory contains practical examples for using vind (vCluster in Docker).
Minimal configuration to get started with vind. Load balancer and registry proxy are enabled by default.
Usage:
vcluster create my-cluster -f basic-cluster.yamlCreate a cluster with multiple worker nodes for testing distributed workloads.
Usage:
vcluster create my-multi-node-cluster -f multi-node-cluster.yaml
kubectl get nodes # Should show control-plane + 3 workersConfigure a custom CNI plugin (like Calico) for advanced networking.
Usage:
vcluster create my-cni-cluster -f custom-cni.yamlExample LoadBalancer service that works out of the box with vind.
Usage:
# Create cluster (load balancer is enabled by default)
vcluster create my-cluster
# Apply
kubectl apply -f loadbalancer-service.yaml
# Check the service - it will have an EXTERNAL-IP!
kubectl get svc nginx-loadbalancerGuide for joining external nodes (like EC2 instances) to your local vind cluster.
Usage: Follow the step-by-step guide in the file.
For a working example with a GCP node, see: Replacing KinD with vind - Deep Dive
Use the official setup-vind GitHub Action to run vind clusters in your CI/CD pipelines:
name: Test with vind
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: loft-sh/setup-vind@main
- run: |
vcluster create test-cluster
kubectl get nodesHave a useful example? Submit a pull request!
Examples should:
- Be well-documented
- Include usage instructions
- Be practical and real-world
- Follow best practices
For more examples and use cases, check out: