A tray application that manages port forwarding in Kubernetes, written in Rust and React
Tags: kubernetes, apps, rust
Published: 2023-12-27 18:23:28

---
title: A tray application that manages port forwarding in Kubernetes, written in Rust and React
published: true
date: 2023-12-18 00:44:00 UTC
tags: Kubernetes,Apps,Rust
canonical_url: https://reactjsexample.com/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](https://reactjsexample.com/content/images/2023/12/Code_2023-12_12-39-39.jpg)

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](https://github.com/hcavarsan/kftray/raw/main/img/demo.png)

#### [Download for macOS](https://github.com/hcavarsan/kftray/releases/latest/download/kftray_0.0.0_universal.dmg) · [Download for Windows](https://github.com/hcavarsan/kftray/releases/latest/download/kftray_0.0.0_x64-setup.exe) · [Download for Linux](https://github.com/hcavarsan/kftray/releases/latest/download/kftray_0.0.0_amd64.AppImage)

* * *

- 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
```

2. Navigate to the cloned directory:

```
cd kftray
```

3. Install dependencies

```
pnpm install
```

4. Run the application in development mode:

```
pnpm run tauri dev
```

## 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](https://github.com/hcavarsan/kftray/blob/main/LICENSE.md) file included with this project.

## GitHub

[View Github](https://github.com/hcavarsan/kftray?ref=reactjsexample.com)