This project provides a Kubernetes Cluster Visualization Tool built with Dash, Dash-Cytoscape, and the Kubernetes Python Client. The tool dynamically fetches Kubernetes cluster data and visually represents nodes, pods, and services in an interactive graph.
- Interactive Visualization: Graphical representation of Kubernetes nodes, pods, and services.
- Dynamic Layouts: Switch between grid, circle, breadth-first, and random layouts.
- Node Interactivity: Click nodes to view detailed information.
- Real-Time Data Fetching: Uses Kubernetes Python Client for live data retrieval.
- Python 3.8+
- Kubernetes Cluster Access
- kubeconfig configured on your local machine
-
Clone the repository: (you are welcome to fork and use your user name etc)
git clone https://github.com/Tatsinnit/k8sVisualizer.git cd k8sVisualizer
-
Install required dependencies:
pip3 install -r requirements.txt
python k8s_visualize.py
Open your browser and navigate to: http://127.0.0.1:8050
- Select Layout: Use the dropdown to change the graph layout.
- Inspect Nodes: Click on a node to view detailed metadata.
.
├── k8s_visualize.py # Main Dash application
├── requirements.txt # Python dependencies
└── README.md # Project documentation
- Dash
- Dash-Cytoscape
- Kubernetes Python Client
- Python 3.x
Contributions are welcome! Please submit an issue or pull request.
This project is licensed under the MIT License.
Feel free to contribute, share feedback, report bugs, or request features!
Happy Visualizing! 🚀