diff --git a/haproxy/haproxy.cfg b/haproxy/haproxy.cfg index 9cd6ede..bc20370 100644 --- a/haproxy/haproxy.cfg +++ b/haproxy/haproxy.cfg @@ -5,11 +5,11 @@ defaults frontend http-in bind *:8080 - acl host_localhost hdr(host) localhost - acl host_direct_localhost hdr_reg(host) -i ^.*\.direct\.localhost?:?.*$ + acl host_direct hdr_reg(host) -i ^.*\.direct\..*?:?.*$ - use_backend pwd if host_localhost - use_backend l2 if host_direct_localhost + use_backend l2 if host_direct + + default_backend pwd backend pwd server node1 pwd:3000 diff --git a/www/assets/app.js b/www/assets/app.js index cadaa22..9a9bb05 100644 --- a/www/assets/app.js +++ b/www/assets/app.js @@ -531,9 +531,12 @@ } } }]) - .config(['$mdIconProvider', '$locationProvider', function($mdIconProvider, $locationProvider) { + .config(['$mdIconProvider', '$locationProvider', '$mdThemingProvider', function($mdIconProvider, $locationProvider, $mdThemingProvider) { $locationProvider.html5Mode({enabled: true, requireBase: false}); $mdIconProvider.defaultIconSet('../assets/social-icons.svg', 24); + $mdThemingProvider.theme('kube') + .primaryPalette('grey') + .accentPalette('grey'); }]) .component('settingsIcon', { template : "settings", diff --git a/www/k8s/index.html b/www/k8s/index.html new file mode 100644 index 0000000..ed1c52f --- /dev/null +++ b/www/k8s/index.html @@ -0,0 +1,252 @@ + + + + Docker Playground + + + + + + + + + +
+
+ +
+

+ Your session has expired. +

+
+
+
+
+ +
+

No connection to server. Reconnecting...

+ +
+ +
+ + + + {{ttl}} + Close session +
+

Instances

+
+
+
+ + Windows containers {{windows}} + +
+
+ + {{newInstanceBtnText}} + + + + +
+

{{instance.ip}}

+

{{instance.hostname}}

+
+ +
+
+
+
+ +
+

Add instances to your playground.

+

Sessions and all their instances are deleted after {{ttl}} hours.

+
+ +
+
+ + + + + {{instance.name}} + + + +
+ + + + + + + {{$chip}} + + + + + {{$chip}} + + +
+
+ + + + + + + + +
+
+ + {{deleteInstanceBtnText}} + +
+ +
+ +
+ {{uploadMessage}} +
+
+
Connection has been lost. Sometimes this happens when a windows instance is joining a swarm. Trying to reconnect terminal...
+ + +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/www/k8s/landing.html b/www/k8s/landing.html new file mode 100644 index 0000000..2322e95 --- /dev/null +++ b/www/k8s/landing.html @@ -0,0 +1,153 @@ + + + + + + + + + + + + Play with Kubernetes + + + + + + + + + + + +
+
+ +
+ +
+ +

Play with Kubernetes

+

A simple, interactive and fun playground to learn Kuberentes

+
+ + +
+
+

Start

+ + + +
+
+ +
+
+

Play with Kuberentes (PWK) is a project hacked by Marcos Lilljedahl and Jonathan Leibiusky and sponsored by Docker Inc.

+

PWK is a K8s playground which allows users to run K8s clusters in a matter of seconds. It gives the experience of having a free Alpine Linux Virtual Machine in browser. Under the hood Docker-in-Docker (DinD) is used to give the effect of multiple VMs/PCs.

+
+
+ + + +
+ + + + + + +