You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 27, 2021. It is now read-only.
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.
5
+
6
+
### Running the Demo
7
+
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:
8
+
9
+
- socket.io
10
+
- cli
11
+
- express
12
+
13
+
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.
14
+
15
+
#### Configuring the demo
16
+
17
+
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](https://github.com/GoogleCloudPlatform/kubernetes).
18
+
19
+
```
20
+
$ ./index.js --help
21
+
22
+
Usage:
23
+
index.js [OPTIONS] [ARGS]
24
+
25
+
Options:
26
+
-s, --KubernetesServer URLURL of the Kubernetes Server
27
+
-m, --NumMinions NUMBERNumber of minions in Kubernetes cluster
28
+
-p, --PodRefreshInterval [NUMBER]Time between requesting the list of pods
29
+
from the master (in milliseconds) (Default is 3000)
30
+
-o, --OperationRefreshInterval [NUMBER]Time between checking the status
31
+
on pending operations (in
32
+
milliseconds) (Default is 1000)
33
+
-k, --KubePath [PATH] Kubernetes repo path (Default is ../kubernetes)
34
+
-a, --KubeAuthPath [PATH]Path to the kubernetes authorization file (Default is ~/.kubernetes_auth)
35
+
-v, --KubeApiVersion [STRING]Version of the Kubernetes api to query against (Default is v1beta1)
36
+
-p, --ListenPort [NUMBER]The port the server should listen on (Default is 3000)
37
+
-r, --MaxReplicas [NUMBER]The maximum number of replicas the server will
38
+
allow a client to create at once (Default is 300)
39
+
-i, --DefaultImage [STRING]The default docker image to use when creating
40
+
pods (Default is dockerfile/nginx)
41
+
--debug Show debug information
42
+
-h, --help Display help and usage details
43
+
```
44
+
45
+
### License
46
+
47
+
Copyright 2014 Microsoft Corporation
48
+
49
+
Licensed under the Apache License, Version 2.0 (the "License");
50
+
you may not use this file except in compliance with the License.
51
+
You may obtain a copy of the License at
52
+
53
+
http://www.apache.org/licenses/LICENSE-2.0
54
+
55
+
Unless required by applicable law or agreed to in writing, software
56
+
distributed under the License is distributed on an "AS IS" BASIS,
57
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
58
+
See the License for the specific language governing permissions and
0 commit comments