kubefwd

kubefwd

Batch forward Kubernetes service ports for local development.

MCPDevOpen sourceKubernetes本地开发端口转发
Type
MCP
Transport
stdio
Open source
Yes
GitHub Stars
★ 4.1k
Source
mcp-github

Overview

kubefwd is a command-line tool that enables batch forwarding of Kubernetes services to your local workstation. Each service gets its own loopback IP address, avoiding port conflicts and making local development more realistic. With kubefwd, developers can seamlessly access services in the cluster locally without environment-specific configurations or setting up local services. Ideal for developers who frequently switch between local and cluster-based development environments.

Capabilities

  • Batch forward Kubernetes services
  • Each service has a dedicated loopback IP
  • Automatic reconnection
  • Interactive TUI monitoring
  • Real-time traffic monitoring
  • Pod log streaming

Use cases

Access cluster services during local developmentAvoid port conflictsSimplify environment configurationMonitor service status in real time

Setup

Requires: Kubernetes 集群Node 环境
macOS: `brew install kubefwd`; Linux: Download `.deb`, `.rpm`, or `.tar.gz`; Windows: `winget install txn2.kubefwd` or `scoop install kubefwd`; Docker: `docker run -it --rm --privileged -v "$HOME/.kube:/root/.kube:ro" txn2/kubefwd services -n my-namespace --tui`

This information was compiled by AI from public sources and may contain inaccuracies — please refer to the source.

FAQ

How does kubefwd differ from kubectl port-forward?

kubefwd can batch forward services across all namespaces, with each service assigned an independent IP, supporting automatic reconnection and real-time monitoring.

How do I get started with kubefwd?

After installation, run `sudo -E kubefwd svc -n my-namespace --tui`.

Related skills