A simple Kubernetes dashboard built in Python using Dash framework.
Current features:
- Nodes: list, and view CPU & RAM usage
- Deployments: list, view their YAML definition, and restart them
- Pods: list, view CPU & RAM usage, view YAML definition, view logs, and delete
- Basic Authentication
Disclaimer: I built k8s-dash for my own personal use and mostly for learning about the Kubernetes API and the Dash framework. So, k8s-dash is not intended to be used in production and I don't plan to extend it much more.
Use the following steps to setup and run the app.
- Clone the repository
- Install the requirements (
pip install -r requirements.txt
). I suggest using a virtual environment. - Set the
K8S_DASH_ADMIN_PASSWORD
environment variable for basic authentication. - Run the app with
python app.py
Note that the app will use the default kubeconfig file (~/.kube/config
) to connect to the cluster.