Giter Club home page Giter Club logo

gcp-live-k8s-visualizer's Introduction

Kubernetes/Container Engine Visualizer

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

Usage:

  • First install a Kubernetes or Container Engine Cluster
  • git clone https://github.com/saturnism/gcp-live-k8s-visualizer.git
  • kubectl proxy --www=path/to/gcp-live-k8s-visualizer

That's it. The visualizer uses labels to organize the visualization. In particular it expects that

  • pods, replicationcontrollers, and services have a name label, and pods and their associated replication controller share the same name, and
  • the pods in your cluster will have a uses label which contains a comma separated list of services that the pod uses.

Installation on AWS:

  • First install a Kubernetes Cluster

  • On EC2 instance running the client (kubectl), install a proxy. We will be using HAProxy listening on port 80 for this guide.

  • sudo wget http://www.haproxy.org/download/1.6/src/haproxy-1.6.3.tar.gz

  • sudo tar -xvf haproxy-1.6.3.tar.gz

  • cd ./haproxy-1.6.3

  • sudo make TARGET=linux2628 USE_PCRE=1 USE_OPENSSL=1 USE_ZLIB=1

  • Create the following configuration file in /etc/haproxy.cfg:

global
    daemon
    maxconn 256

defaults
    mode http
    timeout connect 5000ms
    timeout client 50000ms
    timeout server 50000ms

frontend http-in
    bind :80
    default_backend proxy-backend


backend proxy-backend
    server proxy 127.0.0.1:8001

* Startup the proxy:
 ```
 sudo ./haproxy -f /etc/haproxy.cfg
 ```
* Startup kubernetes proxy by doing the following:
* Get api server location, username, and password from kubernetes:
 ```
kubectl config view
  • Create kubernetes proxy: ``` kubectl proxy --www=path/to/k-visualizer/gcp-live-k8s-visualizer --username=admin --password= --accept-hosts="" --server="" &
* Access visualizer via Public IP of EC2 instance on which you created it:
 ```
http://<public ip>/static/

gcp-live-k8s-visualizer's People

Contributors

brendandburns avatar saturnism avatar mhausenblas avatar roberthbailey avatar guoshimin avatar stevesloka avatar

Watchers

James Cloos avatar Till avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.