Skip to content
프로젝트

소개

KubeVPN은 Kubernetes 클러스터 네트워크에 연결되는 클라우드 네이티브 개발 환경을 제공합니다.

시스템 및 인프라

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
-1
in 1 month
-3

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

kubevpn

GitHub Workflow Go Version Go Report Maintainability GitHub License Docker Pulls Releases GoDoc codecov Snapcraft Ask DeepWiki

KubeVPN

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

Prerequisites

  • 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)

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 kubevpn

Or download from GitHub Releases.

Quick Start

  1. Deploy the sample Bookinfo application:
kubectl apply -f https://raw.githubusercontent.com/kubenetworks/kubevpn/master/samples/bookinfo.yaml
  1. Connect to the cluster network:
kubevpn connect
  1. Check connection status:
kubevpn status
  1. 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
  1. Clean up (IMPORTANT: follow this order):
# 1. If you used `kubevpn proxy` or `kubevpn sync`, leave those resources first
#    This removes your node-agent proxy rules without modifying the workloads
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.yaml

Optional: To clean up KubeVPN traffic manager from the cluster entirely:

kubevpn uninstall
# WARNING: This affects all users of this cluster!

Security Notice

  • KubeVPN modifies your local TUN device, routing table, and DNS settings
  • Proxy mode uses a privileged node-agent DaemonSet (hostPID, host /proc read-only, hostNetwork=false); workload PodSpecs and Services are not modified
  • For production clusters, understand the RBAC and network impacts before use
  • Learn more: Security Documentation

Example Commands

Start the MCP server for AI coding agents (stdio):

kubevpn mcp

Disconnect from a specific connection ID:

kubevpn disconnect <connection-id>

Disconnect from all connections:

kubevpn disconnect --all

Next Steps

Contributing

See CONTRIBUTING.md.

Supported by

JetBrains logo.

관련 프로젝트 살펴보기

불러오는 중…