Skip to content

Kubernetes Dashboard with Trivy

Costlow
Deployability local only
Status local demo
Validation node --check app.js && python3 -m py_compile systeminfo.py
Node.js Python Kubernetes Trivy
Use the guide first.

The full learning guide is on this page. Open the repository files only when a step asks you to inspect code, fork the project, or download raw assets.

Kubernetes

A kubernetes dashboard integrated with health checks, trivy scanning and health checks for pods

Section titled “A kubernetes dashboard integrated with health checks, trivy scanning and health checks for pods”

Kubernetes Dashboard Web Application Welcome to the Kubernetes Dashboard Web Application repository! This web application is designed to provide users with insights and information about their Kubernetes clusters, along with the ability to scan Docker images using Trivy.

The Kubernetes Dashboard Web Application is built with a combination of HTML, CSS, JavaScript, and Python. It offers a user-friendly interface to monitor system metrics, Kubernetes resources, and perform image scans.

🛡️ 2026 DevSecOps Enhancements (What You Will Learn)

Section titled “🛡️ 2026 DevSecOps Enhancements (What You Will Learn)”

While this project provides a custom Kubernetes dashboard integrated with Trivy, 2026 DevSecOps standards mandate strict controls around administrative interfaces:

  1. Secure Exposure (Zero Trust): Custom dashboards that interact with the Kubernetes API must never be exposed publicly via a standard LoadBalancer or NodePort. In a DevSecOps environment, this dashboard should be deployed behind an Identity-Aware Proxy (IAP) or accessed exclusively via secure kubectl port-forward or an internal VPN.
  2. RBAC Constriction: The Python backend interacts with the Kubernetes API. The Service Account executing this pod must be tightly restricted using Role-Based Access Control (RBAC), granting only watch and list permissions, actively preventing any create or delete operations even if the dashboard is compromised.

System Metrics: The upper section of the dashboard displays the current usage of storage, memory, and CPU resources, giving users a quick overview of the system’s health.

Kubernetes Status: In the lower section of the dashboard, users can select a Kubernetes namespace from a dropdown. The dashboard then provides information about the number of deployments, services, and pods within the selected namespace.

Trivy Image Scanning: The application also integrates the Trivy scanning feature. Users can input an image ID, initiate a scan, and view the generated scan report. This helps identify vulnerabilities and potential security risks in Docker images.

How to Use Clone the Repository: Start by cloning this repository to your local machine using the following command:

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

Frontend and Backend Setup: The frontend of the application is built with HTML, CSS, and JavaScript, while the backend is developed using Flask (Python). Ensure that you have the required dependencies installed.

Running the Application: Start the Flask server to serve the backend of the application. Access the dashboard through your browser by navigating to http://localhost:5000 or the appropriate address based on your setup.

Monitoring System Metrics: The top section of the dashboard displays the current storage, memory, and CPU utilization. These metrics provide insights into the system’s performance.

Kubernetes Status: Select a namespace from the dropdown in the lower section to view the number of deployments, services, and pods associated with that namespace.

Image Scanning with Trivy: Use the image scanning feature to input an image ID and trigger a scan. The scan report will highlight vulnerabilities detected in the image.

Technologies Used Frontend: HTML, CSS, JavaScript

Backend: Python Flask

Kubernetes API: Python Kubernetes Client

Security Scanning: Trivy

If you are planning to use this repo for learning, please hit the star. Thanks!