Kubernetes Operational View - read-only system dashboard for multiple K8s clusters
Go to file
Henning Jacobs 87ed169ed4 Merge pull request 'Added Openshift example deployments' (#17) from megabreit/kube-ops-view:main into main
Reviewed-on: #17
2023-05-29 18:07:54 +00:00
app update dependencies 2023-02-09 22:04:18 +01:00
deploy v23.5.0 2023-05-10 13:24:41 +02:00
docs pre-commit linting (#259) 2020-04-25 21:01:21 +02:00
examples draw unassigned pods 2016-12-19 20:59:15 +01:00
kube_ops_view make json_delta faster 2023-05-10 13:24:12 +02:00
openshift Added Openshift example deployments 2023-05-22 01:11:41 +02:00
tests pre-commit linting (#259) 2020-04-25 21:01:21 +02:00
.dockerignore Switch to Poetry and Black (#254) 2019-12-23 20:07:46 +01:00
.flake8 Switch to Poetry and Black (#254) 2019-12-23 20:07:46 +01:00
.gitattributes Fix a problem regarding EOL on macOS (#202) 2019-01-30 23:36:14 +01:00
.gitignore update dependencies 2023-02-09 22:04:18 +01:00
.pre-commit-config.yaml make json_delta faster 2023-05-10 13:24:12 +02:00
.travis.yml Switch to Poetry and Black (#254) 2019-12-23 20:07:46 +01:00
Dockerfile make json_delta faster 2023-05-10 13:24:12 +02:00
LICENSE add license 2016-12-12 21:16:37 +01:00
Makefile update dependencies 2023-02-09 22:04:18 +01:00
README.md README as Markdown 2020-10-03 13:23:24 +02:00
kube-ops-view-logo.png #127 add logo 2017-02-23 21:40:59 +01:00
kube-ops-view-logo.svg #127 add logo 2017-02-23 21:40:59 +01:00
poetry.lock make json_delta faster 2023-05-10 13:24:12 +02:00
pyproject.toml make json_delta faster 2023-05-10 13:24:12 +02:00
screenshot.png update screenshot 2016-12-27 19:51:06 +01:00


Kubernetes Operational View

Travis CI Build Status Documentation Status Docker pulls Calendar Versioning


Goal: provide a common operational picture for multiple Kubernetes clusters.

  • Render nodes and indicate their overall status ("Ready")
  • Show node capacity and resource usage (CPU, memory)
    • Render one "box" per CPU and fill up to sum of pod CPU requests/usage
    • Render vertical bar for total memory and fill up to sum of pod memory requests/usage
  • Render individual pods
    • Indicate pod status by border line color (green: ready/running, yellow: pending, red: error etc)
    • Show current CPU/memory usage (gathered from Heapster) by small vertical bars
    • System pods ("kube-system" namespace) will be grouped together at the bottom
  • Provide tooltip information for nodes and pods
  • Animate pod creation and termination

What it is not:

  • It's not a replacement for the Kubernetes Dashboard. The Kubernetes Dashboard is a general purpose UI which allows managing applications.
  • It's not a monitoring solution. Use your preferred monitoring system to alert on production issues.
  • It's not a operation management tool. Kubernetes Operational View does not allow interacting with the actual cluster.


Running Locally

You can run the app locally with kubectl proxy against your running cluster:

$ kubectl proxy &
$ docker run -it --net=host hjacobs/kube-ops-view

If you are using Docker for Mac, this needs to be slightly different in order to navigate the VM/container inception:

$ kubectl proxy --accept-hosts '.*' &
$ docker run -it -p 8080:8080 -e CLUSTERS=http://docker.for.mac.localhost:8001 hjacobs/kube-ops-view

Now direct your browser to http://localhost:8080

You can also try the UI with the integrated mock mode. This does not require any Kubernetes cluster access:

$ docker run -it -p 8080:8080 hjacobs/kube-ops-view --mock


You can find example Kubernetes manifests for deployment in the deploy folder. It should be as simple as:

$ kubectl apply -k deploy  # apply all manifests from the folder

Afterwards you can open "kube-ops-view" via kubectl port-forward:

$ kubectl port-forward service/kube-ops-view 8080:80

Now direct your browser to http://localhost:8080/

Kubernetes Operational View is also available as a Helm Chart.


The app can be started in "mock mode" to work on UI features without running any Kubernetes cluster:

$ pipenv install && pipenv shell
$ (cd app && npm start &)  # watch and compile JS bundle
$ python3 -m kube_ops_view --mock --debug


The provided Makefile will generate a Docker image by default:

$ make

Multiple Clusters

Multiple clusters are supported by passing a list of API servers, reading a kubeconfig file or pointing to an HTTP Cluster Registry endpoint.

See the documentation on multiple clusters for details.


The following environment variables are supported:


Optional OAuth 2 authorization endpoint URL for protecting the UI.


Optional token endpoint URL for the OAuth 2 Authorization Code Grant flow.


Optional scope specifies level of access that the application is requesting.


Comma separated list of Kubernetes API server URLs. It defaults to http://localhost:8001/ (default endpoint of kubectl proxy).


URL to cluster registry returning list of Kubernetes clusters.


Directory to read (OAuth) credentials from --- these credentials are only used for non-localhost cluster URLs.


Set to "true" for local development to reload code changes.


Path to kubeconfig file to use for cluster access.


Comma separated list of contexts to use when reading the kubeconfig file from KUBECONFIG_PATH.


Set to "true" to mock Kubernetes cluster data.


Interval in seconds for querying clusters (default: 5). Each cluster will at most queried once per configured interval.


Optional Redis server to use for pub/sub events and job locking when running more than one replica. Example: redis://my-redis:6379


HTTP port to listen on. It defaults to 8080.


Template to make Nodes clickable, e.g. can point to kube-web-view. {cluster} (cluster ID) and {name} (Node name) will be replaced in the URL template.


Template to make Pods clickable, e.g. can point to kube-web-view. {cluster} (cluster ID), {namespace} (Pod's namespace), and {name} (Pod name) will be replaced in the URL template.


The URL prefix under which kube-ops-view is externally reachable (for example, if kube-ops-view is served via a reverse proxy). Used for generating relative and absolute links back to kube-ops-view itself. If the URL has a path portion, it will be used to prefix all HTTP endpoints served by kube-ops-view. If omitted, relevant URL components will be derived automatically.

Supported Browsers

The UI uses WebGL, ECMAScript 6, and EventSource features. The following browsers are known to work:

  • Chrome/Chromium 53.0+
  • Mozilla Firefox 49.0+

See the ECMAScript 6 Compatibility Table for details on supported browser versions.


Easiest way to contribute is to provide feedback! We would love to hear what you like and what you think is missing. Create an issue or ping try_except_ on Twitter.

PRs are welcome.


This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.