Skip to content

AymaanPathan/InfraPilot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 

Repository files navigation

✅ CLI → App Converter (Kubernetes Edition)

infra

🚀 Interactive Kubernetes Dashboard Generator powered by Generative UI

Built with Tambo Next.js TypeScript Kubernetes

A hackathon project for "The UI Strikes Back" by WeMakeDevs


🧠 The Problem

Kubernetes observability today is broken:

  • ❌ Dashboards are static and overloaded
  • ❌ Users must learn the UI before solving problems
  • ❌ Information is scattered (pods, logs, events, metrics)
  • ❌ Existing tools don't adapt to user intent

👉 This project replaces static dashboards with an AI-driven, intent-based UI.


💡 The Solution

Instead of a fixed Kubernetes dashboard, the app starts empty and builds the UI dynamically based on what you ask — using natural language, Generative UI, and tools.

✨ Core Concept

User describes intent → AI selects K8s tools → Tambo renders exact UI needed

There is no dashboard by default. The UI only exists when you ask for it.


🎯 Features

✅ Completed Features

  • Kubernetes container management
  • Real-time container metrics (CPU, memory usage)
  • Dynamic UI rendering based on user intent
  • Create new containers on-demand
  • Live error logs with AI explanations
  • AI-powered pod analysis
  • Responsive landing page
  • Metrics visualization
  • Pod comparison tools
  • AI-powered "Fix It" suggestions
  • Pod health monitoring

🔥 Key Capabilities

  • Natural Language Interface - Ask questions in plain English
  • Generative UI - Interface builds itself based on your needs
  • Real-time Monitoring - Live logs and metrics
  • AI Error Analysis - Understand why pods are failing
  • Smart Comparisons - Compare resource usage across pods
  • Intent-Based Design - No pre-built dashboards, only what you need

🎬 Landing

tambo-ai-home

Example Commands

# View cluster resources
"Show cluster overview"
"Show memory and CPU usage"

# Pod management
"List pods in error-testing namespace"
"Show all pods in default namespace"
"Show pods that need attention"

# Monitoring & Health
"Monitor pod health"
"Track pod status in kube-system"
"Show resource usage"

# Debugging
"Show logs of payment-service container"
"Why is db-error-app-6488467855-lg8v5 failing?"
"Explain these errors"

# Comparisons
"Compare CPU and memory of payment-service vs billing-service"
"Compare CPU of pod-a, pod-b, and pod-c"

tambo-ai-chat

🚀 Installation

Prerequisites

  • Node.js 18+
  • Kubernetes cluster (local or remote)
  • kubectl configured
  • MongoDB Atlas account (or local MongoDB)
  • npm or yarn

Backend Setup

# Clone the repository
git clone https://github.com/AymaanPathan/InfraPilot.git
cd InfraPilot/backend

# Install dependencies
npm install

# Set up environment variables
cp .env.example .env
# Edit .env and add your actual API keys and configuration

# Start the backend server
npm run dev

The backend will run on http://localhost:8000 (or your configured port).

Frontend Setup

# Navigate to frontend directory
cd ../frontend

# Install dependencies
npm install

# Set up environment variables
cp .env.local.example .env.local
# Edit .env.local and add your Tambo API key

# Start the development server
npm run dev

Open http://localhost:3000 to see InfraPilot in action.

📖 Usage

How It Works

  1. Start the app → Empty canvas with chat interface
  2. Type your intent → Natural language command
  3. AI processes → Groq AI reasons about your intent
  4. Tools execute → Kubernetes MCP tools fetch data
  5. UI renders → Tambo generates the exact interface you need

Demo Flow

1. "list pods in error-testing namespace"
   → Shows pod list with status indicators

2. "compare logs of payment-service and billing-service"
   → Renders side-by-side log viewer

3. "explain these errors"
   → AI analyzes logs and provides insights

4. "show resource usage"
   → Displays CPU/memory charts

5. "monitor pod health"
   → Real-time health dashboard appears

6. "show pods that need attention"
   → Filtered view of problematic pods

🏗️ Architecture

┌─────────────┐
│   User      │
│  (Browser)  │
└──────┬──────┘
       │ Natural Language
       ▼
┌─────────────┐
│  Next.js    │
│  Frontend   │
└──────┬──────┘
       │
       ▼
┌─────────────┐      ┌──────────────┐
│   Groq AI   │◄────►│  Tambo UI    │
│  Reasoning  │      │  Generator   │
└──────┬──────┘      └──────────────┘
       │
       ▼
┌─────────────┐
│     K8s     │
│   Tools     │
└──────┬──────┘
       │
       ▼
┌─────────────┐
│ Kubernetes  │
│   Cluster   │
└─────────────┘


📧 Contact

Aymaan Pathan - www.linkedin.com/in/pathan-aymaan


⭐ Star this repo if you find it useful!

Made with ❤️ for better Kubernetes observability


About

AI-powered Kubernetes dashboard that generates real-time UI from natural language using Generative UI and live cluster data.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages