https://github.com/notharshhaa/kubernetes-dashboard
π π¬πΆπ£π¦π³π―π¦π΅π¦π΄ π₯π’π΄π©π£π°π’π³π₯ πͺπ―π΅π¦π¨π³π’π΅π¦π₯ πΈπͺπ΅π© π©π¦π’ππ΅π© π€π©π¦π€π¬π΄, π΅π³πͺπ·πΊ π΄π€π’π―π―πͺπ―π¨ π’π―π₯ π©π¦π’ππ΅π© π€π©π¦π€π¬π΄ π§π°π³ π±π°π₯π΄
https://github.com/notharshhaa/kubernetes-dashboard
health-check kubernetes kubernetes-dashboard kubernetes-metrics kubernetes-monitoring kubernetes-pods kubernetes-setup monitoring
Last synced: 4 months ago
JSON representation
π π¬πΆπ£π¦π³π―π¦π΅π¦π΄ π₯π’π΄π©π£π°π’π³π₯ πͺπ―π΅π¦π¨π³π’π΅π¦π₯ πΈπͺπ΅π© π©π¦π’ππ΅π© π€π©π¦π€π¬π΄, π΅π³πͺπ·πΊ π΄π€π’π―π―πͺπ―π¨ π’π―π₯ π©π¦π’ππ΅π© π€π©π¦π€π¬π΄ π§π°π³ π±π°π₯π΄
- Host: GitHub
- URL: https://github.com/notharshhaa/kubernetes-dashboard
- Owner: NotHarshhaa
- Created: 2023-09-04T13:21:01.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2025-04-17T06:42:31.000Z (6 months ago)
- Last Synced: 2025-04-17T21:14:57.839Z (6 months ago)
- Topics: health-check, kubernetes, kubernetes-dashboard, kubernetes-metrics, kubernetes-monitoring, kubernetes-pods, kubernetes-setup, monitoring
- Language: Python
- Homepage:
- Size: 204 KB
- Stars: 46
- Watchers: 2
- Forks: 43
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# π **Kubernetes Dashboard β Advanced Kubernetes Monitoring & Security**

**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.
---
## π **Table of Contents**
- [π Overview](#-overview)
- [β¨ Features](#-features)
- [π Prerequisites](#-prerequisites)
- [βοΈ Installation & Setup](#οΈ-installation--setup)
- [π How It Works](#-how-it-works)
- [π‘ Security & Vulnerability Scanning](#-security--vulnerability-scanning)
- [βοΈ Technology Stack](#οΈ-technology-stack)
- [π Deployment Options](#-deployment-options)
- [π License](#-license)
- [π Support & Contributions](#-support--contributions)---
## π **Overview**
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.
---
## β¨ **Features**
β **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.---
## π **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:
```bash
# 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**
```bash
git clone https://github.com/NotHarshhaa/kubernetes-dashboard.git
cd kubernetes-dashboard
```### 2οΈβ£ **Install Python Dependencies**
```bash
pip install -r requirements.txt
```### 3οΈβ£ **Start the Flask Application**
```bash
python app.py
```π The dashboard is now accessible at **[http://localhost:5000](http://localhost:5000)**.
---
## π **How It Works**
### π **Monitoring Kubernetes System Metrics**
- The **top section** of the dashboard displays live **CPU, memory, and storage** metrics.
- These values provide **real-time cluster performance monitoring**.### π **Kubernetes Namespace Selection**
- Choose a **Kubernetes namespace** from the dropdown.
- The dashboard fetches **Deployments, Services, and Pods** specific to the selected namespace.### π‘ **Image Security Scanning with Trivy**
- 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**.---
## π‘ **Security & Vulnerability Scanning**
This dashboard integrates **Trivy** to perform real-time security assessments of **Docker images**.
### π₯ **Why Use Trivy?**
β Detects **OS vulnerabilities** in container images.
β Identifies **known exploits and security risks**.
β Provides **CVE (Common Vulnerabilities and Exposures) reports**.### π **Running a Manual Scan**
```bash
trivy image nginx:latest
```Output Example:
```plaintext
nginx:latest (debian 11)
=========================
Total: 10 vulnerabilities
Critical: 2 | High: 3 | Medium: 5 | Low: 0
```---
## βοΈ **Technology Stack**
| **Component** | **Technology** |
|----------------------|---------------------------|
| **Frontend** | HTML, CSS, JavaScript |
| **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**
```bash
docker build -t kubernetes-dashboard .
docker run -p 5000:5000 kubernetes-dashboard
```### πΉ **Deploy on Kubernetes**
```bash
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](https://github.com/NotHarshhaa)** π‘.
Iβd love to hear your feedback! Feel free to share your thoughts.---
### π§ **Connect with me:**
[](https://linkedin.com/in/harshhaa-vardhan-reddy) [](https://github.com/NotHarshhaa) [](https://t.me/prodevopsguy) [](https://dev.to/notharshhaa) [](https://hashnode.com/@prodevopsguy)
---
### π’ **Stay Connected**
