DEV Community

MD Taseen Khan
MD Taseen Khan

Posted on • Originally published at reactjsexample.com on

A tray application that manages port forwarding in Kubernetes, written in Rust and React

KFtray

A tray application that manages port forwarding in Kubernetes.

A tray application that manages port forwarding in Kubernetes, written in Rust and React

kftray is a system tray application developed with Tauri, Rust, React, Vite, and Chakra UI designed for Kubernetes users. It simplifies the process of initiating and supervising multiple port forwarding configurations through a user-friendly interface.

A tray application that manages port forwarding in Kubernetes, written in Rust and React

Download for macOS · Download for Windows · Download for Linux


  • Logo generated by Dall-E

Features

Using kftray comes with the following benefits:

  • Resilient Port Forwarding Connection: Ensures continuous service even if a pod dies by reconnecting to another running pod automatically.
  • One-Click Multiple Port Forwards: Set up several port forwarding instances at the same time with a single click, saving time and effort.
  • Independent of Kubectl: Interfaces directly with the Kubernetes API, eliminating the need for kubectl and simplifying port forwarding management.

Stay tuned for more features as we continue to enhance kftray for an even better Kubernetes management experience.

Requirements

  • Node.js and pnpm or yarn for building the frontend.
  • Rust for backend development.

Installation

Building from Source

To build kftray from source, follow these steps:

  1. Clone the repository:
git clone https://github.com/hcavarsan/kftray.git
Enter fullscreen mode Exit fullscreen mode
  1. Navigate to the cloned directory:
cd kftray
Enter fullscreen mode Exit fullscreen mode
  1. Install dependencies
pnpm install
Enter fullscreen mode Exit fullscreen mode
  1. Run the application in development mode:
pnpm run tauri dev
Enter fullscreen mode Exit fullscreen mode

Usage

After building the application, use the following steps to run the application:

  1. Navigate to the src-tauri/target/release/ directory.
  2. Execute the binary for your platform (kftray.exe on Windows, ./kftray on macOS and Linux).
  3. The application will appear in the system tray.
  4. Click the tray icon to open the UI for starting or stopping Kubernetes port forwarding based on your configurations.

Configuration

The UI allows you to add, remove, and edit port-forwarding settings with ease. Configurations are saved at $HOME/.kftray/configs.db by default.

Contributing

Contributions are welcome! Feel free to submit pull requests, create issues, or offer suggestions to improve kftray.

License

KFtray is open-source software licensed under the MIT License. For more details, see the LICENSE file included with this project.

GitHub

View Github

Top comments (0)