Skip to content

Source code for the Kubernetes visualizer used in the GCP Live Container Engine Demo

License

Notifications You must be signed in to change notification settings

vasu1124/k8s-visualizer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kubernetes/Container Engine Visualizer

This is a simple visualizer for use with the Kubernetes API.

Screenshot

Usage:

  • First install a Kubernetes or Container Engine Cluster
  • Clone this repository
  • Run the script sh run.sh or start the proxy manually with kubectl proxy -w=src/

Prerequisites

The visualizer uses labels to organize the visualization. To enable visualization of kubernetes entities set visualize to true.

Connections and grouping is done as follows.

  • Pods are grouped with services if labels match service selectors.

  • A Service is connected to a pod when the selector matches.

  • Deployments are grouped with pods when they are responsible for maintaining the pods.

Here follows minimized .yaml files to show the configuration, only for examples.

Service configuration

apiVersion: v1
kind: Service
metadata:
  name: hello-kubernetes-svc
  labels:
    visualize: "true"
spec:
  selector:
    app: hello-kubernetes-pod

Deployment configuration

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: hello-kubernetes-deployment
  labels:
    visualize: "true"
spec:
  template:
    metadata:
      labels:
        app: hello-kubernetes-pod
        visualize: "true"

About

Source code for the Kubernetes visualizer used in the GCP Live Container Engine Demo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 80.7%
  • CSS 12.3%
  • HTML 6.7%
  • Shell 0.3%