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
Hashes for kubesurveyor-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b1d91b43034aef97b50fbd4b3d5e2eaf5e55f5663a010f58cfe0fb7bfca62ba |
|
MD5 | c9eba71f64245df1a319e2f6fd9cd04d |
|
BLAKE2b-256 | 2daefb3d50442b291bb6ef33437b0532b04a0330e06a1b78170f513e05c8995d |