Git Product home page Git Product logo

azure-kubernetes-visualizer's Introduction

Kubernetes Visualizer

The demo application helps you visualize what is happening in your Kubernetes cluster by showing you where all of your workloads are being run. This both helps with understanding kubernetes, as well as visually demonstrating how its' scheduler works.

Running the Demo

The demo application is based off of NodeJS, so you'll need NodeJS at least 0.10.30. You'll also need the following npm modules:

  • socket.io
  • cli
  • express

You can run the install_packages.sh script to install these if you already have node and npm installed, or you can install them manually.

Configuring the demo

Configuration options are passed to the demo via the command lines. The required options are the url of the Kubernetes server, and the number of minions in the cluster. You can pass this information in directly, or you can run the start_server.sh -- provided you edit it and enter in the path to your checkout of the Kubernetes repository.

$ ./index.js --help

Usage:
  index.js [OPTIONS] [ARGS]

Options: 
  -s, --KubernetesServer URLURL of the Kubernetes Server
  -m, --NumMinions NUMBERNumber of minions in Kubernetes cluster
  -p, --PodRefreshInterval [NUMBER]Time between requesting the list of pods 
                                   from the master (in milliseconds)  (Default is 3000)
  -o, --OperationRefreshInterval [NUMBER]Time between checking the status 
                                         on pending operations (in 
                                         milliseconds)  (Default is 1000)
  -k, --KubePath [PATH]  Kubernetes repo path (Default is ../kubernetes)
  -a, --KubeAuthPath [PATH]Path to the kubernetes authorization file (Default is ~/.kubernetes_auth)
  -v, --KubeApiVersion [STRING]Version of the Kubernetes api to query against  (Default is v1beta1)
  -p, --ListenPort [NUMBER]The port the server should listen on (Default is 3000)
  -r, --MaxReplicas [NUMBER]The maximum number of replicas the server will 
                            allow a client to create at once  (Default is 300)
  -i, --DefaultImage [STRING]The default docker image to use when creating 
                             pods  (Default is dockerfile/nginx)
      --debug            Show debug information
  -h, --help             Display help and usage details

License

Copyright 2014 Microsoft Corporation

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

azure-kubernetes-visualizer's People

Contributors

haishibai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

azure-kubernetes-visualizer's Issues

kube auth file

Hi,
We want to use azure kubernetes visualizer.
Unfortunately it says,

ERROR: Error: Could not find kubrenetes auth file: /Users/nazlierdem/.kubernetes_auth 

Could you please help me to run this tool

Screenshot

A screenshot or a link to a screenshot would be awesome!

Package.json

Hi!

First of all, I'm excited to see that my high school sweetheart (Microsoft) has joined the Kubernetes party! I have missed you dearly.

Secondly, though, I was wondering if you guys avoided the conventional approach for dependency management on purpose, or if it was merely an oversight.

From install_packages.sh:

npm install express socket.io flavored-path cli

There is a much better way to go about that, which is overwhelmingly accepted, a simple package.json file! Besides being more descriptive and all around useful, it will also let you manage the versions of your dependencies to avoid unsightly errors down the road when some kid pushes out pwesome 0.2.1.

For your consumption:
https://docs.npmjs.com/files/package.json
https://github.com/jeremyosborne/packagejsonexample/blob/master/package.json

With a package.json affixed your rather small install command (./install_packages.sh) will become even smaller as npm install. If you really want to go crazy then you can also npm publish and then anyone can install with [sudo] npm install [-g] azure-kubernetes-visualizer without even needing to download from github.

Best Regards,
Luke

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.