Permalink
Browse files

Add demo

  • Loading branch information...
1 parent 9b8a6ce commit 98aa05eb4bd28005609aace172f472d08520baad @tcnksm committed Aug 19, 2015
Showing with 33 additions and 2 deletions.
  1. +31 −0 2015/08/docker-meetup-tokyo5-demo.md
  2. +2 −2 2015/08/docker-meetup-tokyo5.slide
@@ -0,0 +1,31 @@
+# Docker meetup Tokyo #5 (DEMO)
+
+Let's create nginx application,
+
+First, run nginx app with 2 replicas
+
+```bash
+$ kubectl run my-nginx --image=nginx --replicas=2 --port=80
+```
+
+Then, expost it as a service,
+
+
+```bash
+$ kubectl expose rc my-nginx --port=80 --type=LoadBalancer
+```
+
+Get external IP of nginx service,
+
+```bash
+$ kubectl get svc my-nginx -o json | grep IP
+```
+
+And request, you can see the nginx top page,
+
+
+```bash
+boot2docker ssh curl ...
+```
+
+
@@ -33,7 +33,7 @@ Run single node kubernetes cluster in *one* *command* using docker 🐳
Just this, it pulls required docker images and starts them.
-If you run docker on boot2kubernetes-vm, you need port forwarding for connecting api server via `kubectl`. `boot2k8s` automatically detects that and starts proxy server.
+If you run docker on boot2docker-vm, you need port forwarding for connecting api server via `kubectl`. `boot2k8s` automatically detects that and starts proxy server for you.
And easy to clean everything,
@@ -52,7 +52,7 @@ It's important that:
boot2kubernetes is written by Go.
-I experimentally [[https://github.com/docker/libcompose][docker/libcompose]] (& [[https://github.com/jteeuwen/go-bindata][jtweeuwen/go-bindata]] ). `libcompose` is official golang implementation of docker-compose. We can also use it as library from our code.
+I experimentally use [[https://github.com/docker/libcompose][docker/libcompose]] (& [[https://github.com/jteeuwen/go-bindata][jtweeuwen/go-bindata]] ). `libcompose` is official golang implementation of docker-compose. We can also use it as library from our code.
* Inside boot2kubernetes (Comopose file)

0 comments on commit 98aa05e

Please sign in to comment.