Skip to content

Latest commit

 

History

History

README.md

vind Examples

This directory contains practical examples for using vind (vCluster in Docker).

Examples

Minimal configuration to get started with vind. Load balancer and registry proxy are enabled by default.

Usage:

vcluster create my-cluster -f basic-cluster.yaml

Create 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 workers

Configure a custom CNI plugin (like Calico) for advanced networking.

Usage:

vcluster create my-cni-cluster -f custom-cni.yaml

Example 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-loadbalancer

Guide 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

GitHub Actions with setup-vind

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 nodes

Contributing Examples

Have a useful example? Submit a pull request!

Examples should:

  • Be well-documented
  • Include usage instructions
  • Be practical and real-world
  • Follow best practices

More Examples

For more examples and use cases, check out: