A feature-rich Kubernetes Dashboard with live system monitoring, health checks, and container security scanning using Trivy.
Empower your DevOps workflow with real-time cluster insights, security vulnerability detection, and an intuitive UI for Kubernetes resource management.
- 🌟 Overview
- ✨ Features
- 🛠 Prerequisites
- ⚙️ Installation & Setup
- 🔍 How It Works
- 🛡 Security & Vulnerability Scanning
- ⚙️ Technology Stack
- 🚀 Deployment Options
- 📜 License
- 🌟 Support & Contributions
The Kubernetes Dashboard Web Application is designed to simplify Kubernetes cluster monitoring, pod health checks, and container security scanning.
🔹 Real-time insights – Track CPU, memory, and storage usage.
🔹 Namespace-based monitoring – Select a namespace to view Kubernetes resources.
🔹 Security scanning with Trivy – Detect vulnerabilities in container images.
🔹 Modern & responsive UI – Built with HTML, CSS, JavaScript, and Flask.
🔹 Fast & lightweight – Optimized for performance and scalability.
This dashboard enables DevOps engineers, SREs, and developers to efficiently manage their Kubernetes clusters while ensuring security best practices.
✅ Live System Metrics – View real-time CPU, memory, and storage consumption.
✅ Kubernetes Resource Status – Track Deployments, Services, and Pods by namespace.
✅ Container Image Security Scanning – Scan Docker images using Trivy for vulnerabilities.
✅ Pod Health Checks – Monitor pod status, restarts, and logs.
✅ User-friendly Dashboard – Simple, responsive, and easy-to-use UI.
✅ Lightweight & Efficient – Built for high performance and minimal resource usage.
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/Debiangit clone https://github.com/NotHarshhaa/kubernetes-dashboard.git
cd kubernetes-dashboardpip install -r requirements.txtpython app.py🚀 The dashboard is now accessible at http://localhost:5000.
- The top section of the dashboard displays live CPU, memory, and storage metrics.
- These values provide real-time cluster performance monitoring.
- Choose a Kubernetes namespace from the dropdown.
- The dashboard fetches Deployments, Services, and Pods specific to the selected namespace.
- Enter a Docker image ID (e.g.,
nginx:latest). - Click Scan to initiate a security vulnerability assessment.
- The scan report provides details of any critical, high, medium, or low-risk vulnerabilities.
This dashboard integrates Trivy to perform real-time security assessments of Docker images.
✅ Detects OS vulnerabilities in container images.
✅ Identifies known exploits and security risks.
✅ Provides CVE (Common Vulnerabilities and Exposures) reports.
trivy image nginx:latestOutput Example:
nginx:latest (debian 11)
=========================
Total: 10 vulnerabilities
Critical: 2 | High: 3 | Medium: 5 | Low: 0
| Component | Technology |
|---|---|
| Frontend | HTML, CSS, JavaScript |
| Backend | Python Flask |
| Kubernetes API | Python Kubernetes Client |
| Security Scanning | Trivy |
| Deployment | Docker, Kubernetes |
You can deploy the Kubernetes Dashboard using Docker, Kubernetes, or a cloud platform.
docker build -t kubernetes-dashboard .
docker run -p 5000:5000 kubernetes-dashboardkubectl apply -f k8s-manifest.yamlYou can deploy the dashboard on a Kubernetes cluster running on AWS EKS, GCP GKE, or Azure AKS.
This project is licensed under the MIT License – free for personal and commercial use.
Contributions are welcome! If you'd like to improve this project, feel free to submit a pull request.
If you find this repository helpful and plan to use it for learning, please give it a star. Your support is appreciated!
This project is crafted by Harshhaa 💡.
I’d love to hear your feedback! Feel free to share your thoughts.


