k8sfoams

K8s pod foamtree visualizer


Keywords
foamtree, k8s, visualization
License
Apache-2.0
Install
pip install k8sfoams==1.0.3

Documentation

k8s-pod-foamtree

It's web server which uses ~/.kube/config file for presenting resource request set for pods. It uses foamtree package for visualization. Dashboard has two option for visualization:

  • cpu
  • memory

Foamtree view is refreshed automaticaly every 60 seconds by default. Refresh frequency might be change by range slider.

Drag Racing

Node is represented by square shape box. Foams are pods. If pod contains more than one container pod foam is splited into sub-foams. Empty foam represents unused (free) resources avaiable on node.

Memory unit

Below memory units are avaiable for displaing:

  • KB
  • MB
  • GB
  • TB

Context

Context combobox allows for switching current k8s context. Context is changed only in k8s-pod-foamtree web server not in ~/.kube/config file.

Run k8s-pod-foamtree

Before run k8s-pod-foamtree run below command:

make build install

This command builds and install package in your local environment. To run it type in your shell:

k8sfoams

Install via PyPi

pip install k8sfoams

Command lines arguments

  • host: host IP address on which server listen, default is 127.0.0.1
  • port: port number on which server listen, default is 8080
  • d: turn on debug mode when server starts