MCPcopy Index your code
hub / github.com/afritzler/kube-universe

github.com/afritzler/kube-universe @v0.2.11

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.2.11 ↗ · + Follow
3,950 symbols 9,540 edges 11 files 3 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

kube-universe

kube universe logo


demo

Overview

Kube-Universe renders a Kubernetes cluster into a dynamic 3D graph. An example landscape visualization can be found here.

A Live Demo Version is available here

Features

  • 3D cluster overview
  • Identify pods with errors

Installation and Usage

Before you start you need to install statik to vendor the web content into executable

go get -u github.com/rakyll/statik

Get the kube-universe binary

go get github.com/afritzler/kube-universe

Start kube-universe locally

kube-universe serve --kubeconfig=PATH_TO_MY_KUBECONFIG

or just

kube-universe serve

if you are using minikube or have the KUBECONFIG environment variable pointing to a corresponding cluster.

The web UI can be accessed via http://localhost:3000 and the rendered graph under http://localhost:3000/graph. With the --port flag you can also specify under which port the kube universe server should be exposed (default is 3000).

Development

To build and run kube-universe from source

git clone https://github.com/afritzler/kube-universe $GOPATH/src/github.com/afritzler/kube-universe
cd $GOPATH/src/github.com/afritzler/kube-universe
go run *.go serve --kubeconfig=PATH_TO_MY_KUBECONFIG

or to build and run it using the executable

make
./kube-universe serve --kubeconfig=PATH_TO_MY_KUBECONFIG

To build the Docker image

cd $GOPATH/src/github.com/afritzler/kube-universe
make docker-build

Acknowledgements

Kube universe is using 3d-force-graph for rendering.

Core symbols most depended-on inside this repo

Shape

Method 2,657
Class 650
Function 640
Struct 3

Languages

TypeScript100%
Go1%

Modules by API surface

web/js/three.min.js1,997 symbols
web/js/3d-force-graph.min.js1,894 symbols
web/js/dat.gui.js32 symbols
web/js/three-spritetext.min.js11 symbols
cmd/root.go4 symbols
pkg/types/types.go3 symbols
cmd/serve.go3 symbols
pkg/renderer/renderer.go2 symbols
cmd/render.go2 symbols
statik/statik.go1 symbols
main.go1 symbols

For agents

$ claude mcp add kube-universe \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page