Skip to main content

Kubernetes Web View allows to list and view all Kubernetes resources (incl. CRDs) with permalink-friendly URLs in a plain-HTML frontend

Project description

Kubernetes Web View

Build Status Documentation Status GitHub tag (latest SemVer) Docker Pulls License CalVer

Kubernetes Web View allows to list and view all Kubernetes resources (incl. CRDs) with permalink-friendly URLs in a plain-HTML frontend. This tool was mainly developed to provide a web-version of kubectl for troubleshooting and supporting colleagues. See the Kubernetes Web View Documentation and try out the live demo.

Goals:

  • handling of any API resource: both core Kubernetes and CRDs
  • permalink-friendly URL paths for giving links to colleagues (e.g. to help troubleshoot)
  • option to work with multiple clusters
  • allow listing different resource types on the same page (e.g. deployments and CRDs with same label)
  • replicate some of the common kubectl features, e.g. -l (label selector) and -L (label columns)
  • simple HTML, only add JavaScript where it adds value
  • pluggable links, e.g. to link to other tools based on resource properties like labels (monitoring, reports, ..)
  • optional: editing resources as YAML manifests (kubectl edit)

Non-goals:

  • application management
  • reporting/visualization
  • fancy UI (JS/SPA)

Quickstart

This will run Kubernetes Web View locally with your existing Kubeconfig:

docker run -it -p 8080:8080 -u $(id -u) -v $HOME/.kube:/.kube hjacobs/kube-web-view

Open http://localhost:8080/ in your browser to see the UI.

Deploying into your cluster

This will deploy a single Pod with Kubernetes Web View into your cluster:

kubectl apply -f deploy/
kubectl port-forward service/kube-web-view 8080:80

Open http://localhost:8080/ in your browser to see the UI.

Running tests

This requires Python 3.7 and poetry and will run unit tests and end-to-end tests with Kind:

make test

The end-to-end (e2e) tests will bootstrap a new Kind cluster, you can run Kubernetes Web View for development against this cluster:

make run.kind

To clean up the e2e test cluster (also needed after a machine reboot):

make clean.e2e

Building the Docker image

make

Developing Locally

To start the Python web server locally with the default kubeconfig (~/.kube/config):

make run

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kube-web-view-19.8.0.tar.gz (319.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kube_web_view-19.8.0-py3-none-any.whl (328.4 kB view details)

Uploaded Python 3

File details

Details for the file kube-web-view-19.8.0.tar.gz.

File metadata

  • Download URL: kube-web-view-19.8.0.tar.gz
  • Upload date:
  • Size: 319.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.7.3 Linux/4.15.0-54-generic

File hashes

Hashes for kube-web-view-19.8.0.tar.gz
Algorithm Hash digest
SHA256 8109b17c0a5f6cbd8c175b5dd13782eef93cbcad12f94df54239bfdc5022193d
MD5 56b921e47422a70b4afefe00a2f53986
BLAKE2b-256 40e904ea46516e473de4d4cd0b0f36a233120ad861b4d066e928899f08af770b

See more details on using hashes here.

File details

Details for the file kube_web_view-19.8.0-py3-none-any.whl.

File metadata

  • Download URL: kube_web_view-19.8.0-py3-none-any.whl
  • Upload date:
  • Size: 328.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.7.3 Linux/4.15.0-54-generic

File hashes

Hashes for kube_web_view-19.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9d2f3e31a1c70a6164dbd22c06f173dfeff8fc322db345af4728f86dc0729c38
MD5 5d66fc510d8a32ad730a38f80360acf4
BLAKE2b-256 45c4ffb9ddde4ed0ccc803a93ca93b038ec267c4ffe853e031e24b829558e80a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page