|
1 week ago | |
---|---|---|
deploy | 1 week ago | |
docs | 1 week ago | |
examples | 9 months ago | |
kube_web | 1 week ago | |
tests | 7 months ago | |
.flake8 | 7 months ago | |
.gitignore | 9 months ago | |
.pre-commit-config.yaml | 1 week ago | |
.travis.yml | 1 year ago | |
Dockerfile | 7 months ago | |
LICENSE | 1 year ago | |
Makefile | 1 week ago | |
README.md | 3 months ago | |
poetry.lock | 1 week ago | |
pyproject.toml | 1 week ago |
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:
kubectl
features, e.g. -l
(label selector) and -L
(label columns)kubectl edit
)Non-goals:
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.
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.
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
make
To start the Python web server locally with the default kubeconfig (~/.kube/config
):
make run