Skip to content

A small Kubernetes web dashboard created using Python and the Dash framework

License

Notifications You must be signed in to change notification settings

miguelgarcia/k8s-dash

Repository files navigation

k8s-dash

A simple Kubernetes dashboard built in Python using Dash framework.

Screenshot displaying the deployments page

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.

Setup

Use the following steps to setup and run the app.

  1. Clone the repository
  2. Install the requirements (pip install -r requirements.txt). I suggest using a virtual environment.
  3. Set the K8S_DASH_ADMIN_PASSWORD environment variable for basic authentication.
  4. Run the app with python app.py

Note that the app will use the default kubeconfig file (~/.kube/config) to connect to the cluster.

About

A small Kubernetes web dashboard created using Python and the Dash framework

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages