A lightweight desktop application for managing Kubernetes port-forwarding operations across multiple contexts and clusters.
- 🔄 Multi-cluster support with context switching
- 🚀 Easy-to-use port forwarding interface
- 🔍 Pod and namespace discovery
- 📊 Service port detection and mapping
- ⚡ Fast and reliable connection management
- 🔒 Secure connection handling with retry mechanisms
- 💻 Cross-platform support (Windows, macOS, Linux)
- Node.js (v14 or later)
- npm or yarn
- Electron
- Clone the repository:
git clone https://github.com/yourusername/kube-connector.git
cd kube-connector
- Install dependencies:
npm install
# or
yarn install
- Start the application:
npm start
# or
yarn start
Build for all platforms:
npm run dist
Platform-specific builds:
# Windows
npm run dist:win
# macOS
npm run dist:mac
# Linux
npm run dist:linux
- Launch the application
- Select your kubeconfig file from the dropdown menu
- Choose the desired Kubernetes context
- Select namespace and pod
- Configure local and remote ports
- Start port forwarding
For development mode with hot reload:
npm run debug
main.js
- Electron main processk8s-client.js
- Kubernetes client handlerpreload.js
- Preload script for securityrenderer.js
- Frontend logicindex.html
- Main UI
Feel free to submit issues and enhancement requests!
- Claude (AI Assistant) - Initial documentation and project structure
- [xiandan]
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Copyright 2024 KubeConnector
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
- Built with Electron and @kubernetes/client-node
- Thanks to the Kubernetes community for excellent documentation
Last updated: December 2024
KubeConnector 是一个轻量级桌面应用程序,用于管理多个 Kubernetes 集群的端口转发操作。
- 🔄 支持多集群管理和上下文切换
- 🚀 简单直观的端口转发界面
- 🔍 自动发现 Pod 和 Namespace
- 📊 智能检测和映射服务端口
- ⚡ 快速可靠的连接管理
- 🔒 具有重试机制的安全连接处理
- 💻 跨平台支持(Windows、macOS、Linux)
- Node.js(v14 或更高版本)
- npm 或 yarn
- Electron
- 克隆仓库:
git clone https://github.com/yourusername/kube-connector.git
cd kube-connector
- 安装依赖:
npm install
# 或
yarn install
- 启动应用:
npm start
# 或
yarn start
构建所有平台版本:
npm run dist
构建特定平台版本:
# Windows 版本
npm run dist:win
# macOS 版本
npm run dist:mac
# Linux 版本
npm run dist:linux
- 启动应用程序
- 从下拉菜单选择 kubeconfig 文件
- 选择目标 Kubernetes 上下文
- 选择命名空间和 Pod
- 配置本地和远程端口
- 开始端口转发
启动开发模式(支持热重载):
npm run debug
main.js
- Electron 主进程k8s-client.js
- Kubernetes 客户端处理程序preload.js
- 安全预加载脚本renderer.js
- 前端逻辑index.html
- 主界面
欢迎提交问题和功能改进建议!
- Claude (AI助手) - 初始文档和项目结构
- [xiandan]
本项目采用 Apache License 2.0 协议 - 详见 LICENSE 文件。
Copyright 2024 KubeConnector
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
- 基于 Electron 和 @kubernetes/client-node 构建
- 感谢 Kubernetes 社区提供的优秀文档
最后更新:2024年12月