A simple, Kubernetes management system built with Rust and React. This application runs locally on your machine and leverages your existing kubeconfig file to interact with your Kubernetes clusters.
- Cluster Context Switching: Easily switch between different Kubernetes contexts defined in your local configuration.
- Resource Management: View and manage various Kubernetes resources (Pods, Deployments, Services, ConfigMaps, etc.).
- Resource Relationship Graph: Interactive visualization of resource dependencies including:
- Hierarchy: Owner references (e.g., Deployment -> ReplicaSet -> Pod).
- Networking: Service selectors and reverse lookups (Service -> Pod).
- Storage: PVC -> PV -> StorageClass bindings.
- Configuration: Pod usage of ConfigMaps and Secrets.
- Real-time Updates: Auto-refresh capability with user-configurable intervals (5s, 10s, 30s, 1m).
- Modern UI: Clean, responsive interface built with React, Tailwind CSS, and Lucide icons.
- High Performance: Backend powered by Rust for efficient Kubernetes API interactions.
- Language: Rust
- Framework: Axum
- Kubernetes Client:
kube-rs - API: RESTful API
- Framework: React (Vite)
- Runtime/Package Manager: Bun
- Styling: Tailwind CSS
- State Management: TanStack Query (React Query)
- Visualization: ReactFlow, Dagre
- Rust: Ensure you have Rust installed (
cargo). - Bun: Install Bun for frontend dependency management and running the dev server.
- Kubernetes Config: A valid
~/.kube/configfile (or equivalent pointed to byKUBECONFIGenv var) with access to at least one cluster.
Development Mode:
Runs the backend with cargo run and frontend with vite (hot reload).
Windows (PowerShell):
.\dev.ps1Linux/Mac/Git Bash:
chmod +x dev.sh
./dev.shProduction Mode: Builds optimized binaries/assets and runs them.
Windows (PowerShell):
.\prod.ps1Linux/Mac/Git Bash:
chmod +x prod.sh
./prod.shNavigate to the backend directory and run the server:
cd backend
cargo runNavigate to the frontend directory, install dependencies, and start the development server:
cd frontend
bun install
bun run devk8s-manager/
├── backend/ # Rust Axum API Server
│ ├── src/
│ │ ├── handlers/ # API Request Handlers
│ │ ├── services/ # Business Logic & K8s Client
│ │ └── ...
│ └── ...
└── frontend/ # React Vite Application
├── src/
│ ├── components/# Reusable UI Components
│ ├── hooks/ # Custom React Hooks
│ ├── services/ # API Client
│ └── ...
└── ...