Good enough Kubernetes namespace visualization tool
Project description
Kubesurveyor
Good enough Kubernetes namespace visualization tool.
No provisioning to a cluster required, only Kubernetes API is scrapped.
Installation
sudo apt-get install graphviz
pip install kubesurveyor
Usage
Export path to a custom certification authority, if you use one for your Kubernetes cluster API
export REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
Alternatively, ignore K8S API certificate errors using --insecure or -k
kubesurveyor <namespace> --insecure
Show <namespace> namespace as a dot language graph, using currently active K8S config context
kubesurveyor <namespace>
Specify context to be used, if there are multiple in the K8S config file
kubesurveyor <namespace> --context <context>
Dump crawled namespace data to a YAML format for later processing
kubesurveyor <namespace> --context <context> --save > namespace.yaml
Load from YAML file, show as dot language graph
cat namespace.yaml | kubesurveyor <namespace> --load
Load from YAML file and render as png visualization to a current working directory
cat namespace.yaml | kubesurveyor <namespace> --load --out png
If you want to generate architecture image from dot definition by hand, use dot directly
dot -Tpng k8s.dot > k8s.png
Limitations:
- unconnected pods, services are not shown
- could have problems with deployments created by Tiller
- number of replicas is not tracked
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kubesurveyor-2.0.0.tar.gz.
File metadata
- Download URL: kubesurveyor-2.0.0.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.8.0-40-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf28003d720343ae2c7f393693198f29e17314811402eadc24c16e6b3317d7c3
|
|
| MD5 |
eaf968089e5b0d045f455bb05cb97515
|
|
| BLAKE2b-256 |
9fab3eee69e562eea305ad1c69d55e6700f55bdaf3765d842724f83648be21fc
|
File details
Details for the file kubesurveyor-2.0.0-py3-none-any.whl.
File metadata
- Download URL: kubesurveyor-2.0.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.8.0-40-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a32dec5f1d9904f5d2d0ea6b7582195ca1f392c8c613bb067d3b6194f1b66f7
|
|
| MD5 |
88651a107d1a2b3b6dd8d9e74bed2359
|
|
| BLAKE2b-256 |
4ad6b99303716c0ec0eb4fab41c0ceb2c50c2f50963b3090c2b4ae1508092748
|