Kubernetes Web View
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
kubectlfeatures, 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.8 and poetry and will run unit tests and end-to-end tests with Kind:
make test
It is also possible to run static and unit tests in docker env (make test is equal to make poetry lint test.unit docker)
docker run -it -v $PWD:/src -w /src python:3.8 /bin/bash -c "pip3 install poetry; make poetry lint test.unit"
make docker
The end-to-end (e2e) tests will bootstrap a new Kind cluster via pytest-kind, you can keep the cluster and run Kubernetes Web View for development against it:
PYTEST_ADDOPTS=--keep-cluster make test
make run.kind
Building the Docker image
make
Developing Locally
To start the Python web server locally with the default kubeconfig (~/.kube/config):
make run
Metadata
Release files for kube-web-view 21.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kube-web-view-21.2.0.tar.gz | 459.1 kB | Without provenance | Details for kube-web-view-21.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kube_web_view-21.2.0-py3-none-any.whl | Python 3 | none | any | Details for kube_web_view-21.2.0-py3-none-any.whl |
Total release size: 933.0 kB
Release files / kube-web-view-21.2.0.tar.gz
| Download URL | kube-web-view-21.2.0.tar.gz |
|---|---|
| Size | 459.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
786494f2163d0aa74840b88b05b25356821ad00aa5e26efbff98cab9979a6553
|
|
BLAKE2b-256 checksum How to use checksums |
dace7612f9fc0430f9274a4290b18abc191ad47af14ccaca0cc1a5f1535826b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.9.1 Linux/5.8.0-41-generic
|
Release files / kube_web_view-21.2.0-py3-none-any.whl
| Download URL | kube_web_view-21.2.0-py3-none-any.whl |
|---|---|
| Size | 473.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4ee9a05f984a1be2bac7ed770177d0f10cc63f635c85ab5e55f9685825bcb132
|
|
BLAKE2b-256 checksum How to use checksums |
2fa34d8aeefdcfec90bef47a26ab50b65a6e7eb3a00340d10dd8f663524d8da2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.9.1 Linux/5.8.0-41-generic
|
Security for kube-web-view 21.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.