English | 中文 | Documentation | Architecture
KubeVPN offers a Cloud-Native Dev Environment that seamlessly connects to your Kubernetes cluster network.
- Connect directly to cluster network using Pod/Service IP or Kubernetes DNS
- Intercept inbound traffic from cluster services to your local machine with service mesh
- Run Kubernetes pods locally in Docker with identical environment, volumes, and network
- Valid kubeconfig with appropriate RBAC permissions for target namespace
- Local sudo/root privileges (for creating TUN device and modifying routing/DNS)
unzip(required for script-based installation)
Choose one method:
# Script (macOS/Linux)
curl -fsSL https://kubevpn.dev/install.sh | sh
# Homebrew (macOS/Linux)
brew install kubevpn
# Snap (Linux)
sudo snap install kubevpn
# Krew (Windows/macOS/Linux)
kubectl krew index add kubevpn https://github.com/kubenetworks/kubevpn.git
kubectl krew install kubevpn/kubevpn
# Scoop (Windows)
scoop bucket add extras
scoop install kubevpnOr download from GitHub Releases.
- Deploy the sample Bookinfo application:
kubectl apply -f https://raw.githubusercontent.com/kubenetworks/kubevpn/master/samples/bookinfo.yaml- Connect to the cluster network:
kubevpn connect- Check connection status:
kubevpn status- Access cluster services:
# Using Pod IP
kubectl get pods -o wide
curl <pod-ip>:9080
# Using Service IP
kubectl get svc -o wide
curl <service-ip>:9080
# Using Kubernetes DNS
curl productpage.default.svc.cluster.local:9080
curl productpage:9080 # short name works in same namespace- Clean up (IMPORTANT: follow this order):
# 1. If you used `kubevpn proxy` or `kubevpn sync`, leave those resources first
# This restores the workloads to their original state and removes injected sidecars
kubevpn leave deployments/productpage
# 2. Disconnect by connection ID (from `kubevpn status`)
kubevpn disconnect <connection-id>
# 3. Delete the sample Bookinfo
kubectl delete -f https://raw.githubusercontent.com/kubenetworks/kubevpn/master/samples/bookinfo.yamlOptional: To clean up KubeVPN traffic manager from the cluster entirely:
kubevpn uninstall
# WARNING: This affects all users of this cluster!- KubeVPN modifies your local TUN device, routing table, and DNS settings
- Proxy mode injects sidecar containers into workloads, which may require
privileged,NET_ADMIN, orNET_RAWcapabilities - For production clusters, understand the RBAC and network impacts before use
- Learn more: Security Documentation
Start the MCP server for AI coding agents (stdio):
kubevpn mcpDisconnect from a specific connection ID:
kubevpn disconnect <connection-id>Disconnect from all connections:
kubevpn disconnect --all- Full documentation: kubevpn.dev
- Command reference: Connect
- Architecture and design docs: docs/README.md
See CONTRIBUTING.md.

