Skip to content

𝘈 𝘬𝘢𝘣𝘦𝘳𝘯𝘦𝘡𝘦𝘴 π˜₯𝘒𝘴𝘩𝘣𝘰𝘒𝘳π˜₯ π˜ͺ𝘯𝘡𝘦𝘨𝘳𝘒𝘡𝘦π˜₯ 𝘸π˜ͺ𝘡𝘩 𝘩𝘦𝘒𝘭𝘡𝘩 𝘀𝘩𝘦𝘀𝘬𝘴, 𝘡𝘳π˜ͺ𝘷𝘺 𝘴𝘀𝘒𝘯𝘯π˜ͺ𝘯𝘨 𝘒𝘯π˜₯ 𝘩𝘦𝘒𝘭𝘡𝘩 𝘀𝘩𝘦𝘀𝘬𝘴 𝘧𝘰𝘳 𝘱𝘰π˜₯𝘴

Notifications You must be signed in to change notification settings

NotHarshhaa/kubernetes-dashboard

Repository files navigation

πŸš€ Kubernetes Dashboard – Enhanced Kubernetes Monitoring & Security

kubedash

A comprehensive Kubernetes Dashboard with real-time system monitoring, interactive visualizations, health checks, container security scanning, and dark/light theme support.

Empower your DevOps workflow with advanced cluster insights, security vulnerability detection, and an intuitive UI for Kubernetes resource management.


πŸ“Œ Table of Contents


🌟 Overview

The Enhanced Kubernetes Dashboard provides a modern, feature-rich interface for monitoring, managing, and securing your Kubernetes clusters.

πŸ”Ή Real-time visualizations – Interactive charts for CPU, memory, and storage metrics
πŸ”Ή Comprehensive cluster view – Monitor deployments, pods, services, and more
πŸ”Ή Dark/Light theme support – Comfortable viewing in any environment
πŸ”Ή Security scanning with Trivy – Detect vulnerabilities in container images
πŸ”Ή Pod logs viewer – Easily access and filter container logs
πŸ”Ή Modern responsive UI – Optimized for desktop and mobile devices
πŸ”Ή Health status monitoring – Track cluster component health

This dashboard enables DevOps engineers, SREs, and developers to efficiently manage their Kubernetes clusters while ensuring security best practices.


✨ New Features & Enhancements

🎨 UI Improvements

  • Modern dashboard layout with sidebar navigation
  • Dark/light theme support with system preference detection
  • Responsive design for all device sizes
  • Interactive charts for system metrics
  • Improved notifications system

πŸ“Š Visualization Enhancements

  • Real-time metric charts for CPU, memory, and storage
  • Pod status visualization with color-coded status indicators
  • Vulnerability summary charts for security scans
  • Historical metrics for trend analysis

πŸ”§ Functional Improvements

  • Enhanced pod management with detailed status information
  • Advanced log viewer with filtering capabilities
  • Improved security scanner with vulnerability classification
  • Health status indicators for cluster components
  • Streamlined namespace management

πŸ”’ Security Features

  • Detailed vulnerability reports with severity classification
  • Export functionality for scan results
  • Component-level health monitoring

πŸ›  Prerequisites

Before installing the Kubernetes Dashboard, ensure you have the following dependencies installed:

πŸ”Ή Python 3.8+ – Required for Flask backend.
πŸ”Ή pip – Python package manager.
πŸ”Ή Docker & Kubernetes Cluster – To monitor cluster resources.
πŸ”Ή kubectl – Kubernetes command-line tool.
πŸ”Ή Trivy – For container image vulnerability scanning.

Install kubectl and Trivy if not already installed:

# Install kubectl (for Kubernetes resource monitoring)
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x kubectl
sudo mv kubectl /usr/local/bin/

# Install Trivy (for security scanning)
brew install aquasecurity/trivy/trivy  # For macOS
sudo apt install trivy  # For Ubuntu/Debian

βš™οΈ Installation & Setup

1️⃣ Clone the Repository

git clone https://github.com/NotHarshhaa/kubernetes-dashboard.git
cd kubernetes-dashboard

2️⃣ Install Python Dependencies

pip install -r requirements.txt

3️⃣ Start the Flask Application

python systeminfo.py

πŸš€ The dashboard is now accessible at http://localhost:5000.


πŸ” How It Works

πŸ“Š Real-time System Monitoring

  • Interactive charts display live CPU, memory, and storage metrics
  • Historical data tracking shows performance trends over time
  • Auto-refresh functionality keeps data current

πŸ”„ Kubernetes Resource Management

  • Choose a namespace from the dropdown to filter resources
  • View deployments, pods, and services specific to the selected namespace
  • Pod status visualization shows running, pending, and failed pods

πŸ›‘ Image Security Scanning

  • Enter a Docker image name (e.g., nginx:latest)
  • Get a comprehensive vulnerability report with severity classifications
  • Export scan results for documentation and compliance

πŸ“‹ Pod Logs Viewer

  • Select a pod to view its logs
  • Filter log content to find specific information
  • Real-time log updates for active monitoring

πŸ›‘ Security & Vulnerability Scanning

This dashboard integrates Trivy to perform real-time security assessments of Docker images.

πŸ”₯ Enhanced Security Features

βœ… Vulnerability summary with severity counts (Critical, High, Medium, Low)
βœ… Detailed vulnerability reports with CVE information
βœ… Export functionality for documentation and compliance
βœ… Visual indicators for security status

πŸ” Running a Scan

  1. Enter the Docker image name in the scan form
  2. Click the Scan button
  3. View the vulnerability summary and detailed report
  4. Export results if needed

βš™οΈ Technology Stack

Component Technology
Frontend HTML5, CSS3, JavaScript ES6
UI Framework Custom CSS with Flexbox/Grid
Charts Chart.js
Backend Python Flask
Kubernetes API Python Kubernetes Client
Security Scanning Trivy
Deployment Docker, Kubernetes

πŸš€ Deployment Options

You can deploy the Kubernetes Dashboard using Docker, Kubernetes, or a cloud platform.

πŸ”Ή Run with Docker

docker build -t kubernetes-dashboard .
docker run -p 5000:5000 kubernetes-dashboard

πŸ”Ή Deploy on Kubernetes

kubectl apply -f k8s-manifest.yaml

πŸ”Ή Deploy on Cloud (AWS/GCP/Azure)

You can deploy the dashboard on a Kubernetes cluster running on AWS EKS, GCP GKE, or Azure AKS.


πŸ“œ License

This project is licensed under the MIT License – free for personal and commercial use.


🌟 Support & Contributions

🀝 Contributing

Contributions are welcome! If you'd like to improve this project, feel free to submit a pull request.


Hit the Star! ⭐

If you find this repository helpful and plan to use it for learning, please give it a star. Your support is appreciated!


πŸ› οΈ Author & Community

This project is crafted by Harshhaa πŸ’‘.
I'd love to hear your feedback! Feel free to share your thoughts.


πŸ“§ Connect with me:

LinkedIn GitHub Telegram Dev.to Hashnode


πŸ“’ Stay Connected

Follow Me

About

𝘈 𝘬𝘢𝘣𝘦𝘳𝘯𝘦𝘡𝘦𝘴 π˜₯𝘒𝘴𝘩𝘣𝘰𝘒𝘳π˜₯ π˜ͺ𝘯𝘡𝘦𝘨𝘳𝘒𝘡𝘦π˜₯ 𝘸π˜ͺ𝘡𝘩 𝘩𝘦𝘒𝘭𝘡𝘩 𝘀𝘩𝘦𝘀𝘬𝘴, 𝘡𝘳π˜ͺ𝘷𝘺 𝘴𝘀𝘒𝘯𝘯π˜ͺ𝘯𝘨 𝘒𝘯π˜₯ 𝘩𝘦𝘒𝘭𝘡𝘩 𝘀𝘩𝘦𝘀𝘬𝘴 𝘧𝘰𝘳 𝘱𝘰π˜₯𝘴

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published