From 55b680552a3f06cbd1093a3011629c792ceef20c Mon Sep 17 00:00:00 2001 From: Ilya Dmitrichenko Date: Thu, 5 Mar 2015 17:27:26 +0000 Subject: [PATCH] coreos/azure: Ensure docs match the output in new version --- .../coreos/azure/README.md | 41 ++++++++++--------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/docs/getting-started-guides/coreos/azure/README.md b/docs/getting-started-guides/coreos/azure/README.md index 3071c1d0b56b4..4f33a448fb549 100644 --- a/docs/getting-started-guides/coreos/azure/README.md +++ b/docs/getting-started-guides/coreos/azure/README.md @@ -76,13 +76,14 @@ kubectl get pods --watch Eventually you should see: ``` -POD IP CONTAINER(S) IMAGE(S) HOST LABELS STATUS -redis-master 10.2.1.4 master dockerfile/redis kube-01/ name=redis-master Running -40d8cebd-b679-11e4-b6f6-000d3a20a034 10.2.2.4 slave brendanburns/redis-slave kube-02/ name=redisslave,uses=redis-master Running -40dbdcd0-b679-11e4-b6f6-000d3a20a034 10.2.1.5 slave brendanburns/redis-slave kube-01/ name=redisslave,uses=redis-master Running -421473f6-b679-11e4-b6f6-000d3a20a034 10.2.2.5 php-redis kubernetes/example-guestbook-php-redis kube-02/ name=frontend,uses=redisslave,redis-master Running -4214d4fe-b679-11e4-b6f6-000d3a20a034 10.2.1.6 php-redis kubernetes/example-guestbook-php-redis kube-01/ name=frontend,uses=redisslave,redis-master Running -42153c72-b679-11e4-b6f6-000d3a20a034 php-redis kubernetes/example-guestbook-php-redis name=frontend,uses=redisslave,redis-master Pending +POD IP CONTAINER(S) IMAGE(S) HOST LABELS STATUS +frontend-controller-0133o 10.2.1.14 php-redis kubernetes/example-guestbook-php-redis kube-01/172.18.0.13 name=frontend,uses=redisslave,redis-master Running +frontend-controller-ls6k1 10.2.3.10 php-redis kubernetes/example-guestbook-php-redis name=frontend,uses=redisslave,redis-master Running +frontend-controller-oh43e 10.2.2.15 php-redis kubernetes/example-guestbook-php-redis kube-02/172.18.0.14 name=frontend,uses=redisslave,redis-master Running +redis-master 10.2.1.3 master dockerfile/redis kube-01/172.18.0.13 name=redis-master Running +redis-slave-controller-fplln 10.2.2.3 slave brendanburns/redis-slave kube-02/172.18.0.14 name=redisslave,uses=redis-master Running +redis-slave-controller-gziey 10.2.1.4 slave brendanburns/redis-slave kube-01/172.18.0.13 name=redisslave,uses=redis-master Running + ``` ## Scaling @@ -129,34 +130,34 @@ First, double-check how many replication controllers there are: ``` core@kube-00 ~ $ kubectl get rc -CONTROLLER CONTAINER(S) IMAGE(S) SELECTOR REPLICAS -frontendController php-redis kubernetes/example-guestbook-php-redis name=frontend 3 -redisSlaveController slave brendanburns/redis-slave name=redisslave 2 +CONTROLLER CONTAINER(S) IMAGE(S) SELECTOR REPLICAS +frontend-controller php-redis kubernetes/example-guestbook-php-redis name=frontend 3 +redis-slave-controller slave brendanburns/redis-slave name=redisslave 2 ``` As there are 4 minions, let's resize proportionally: ``` -core@kube-00 ~ $ kubectl resize --replicas=4 rc redisSlaveController +core@kube-00 ~ $ kubectl resize --replicas=4 rc redis-slave-controller resized -core@kube-00 ~ $ kubectl resize --replicas=4 rc frontendController +core@kube-00 ~ $ kubectl resize --replicas=4 rc frontend-controller resized ``` Check what you have now: ``` kubectl get rc -CONTROLLER CONTAINER(S) IMAGE(S) SELECTOR REPLICAS -frontendController php-redis kubernetes/example-guestbook-php-redis name=frontend 4 -redisSlaveController slave brendanburns/redis-slave name=redisslave 4 +CONTROLLER CONTAINER(S) IMAGE(S) SELECTOR REPLICAS +frontend-controller php-redis kubernetes/example-guestbook-php-redis name=frontend 4 +redis-slave-controller slave brendanburns/redis-slave name=redisslave 4 ``` You now will have more instances of front-end Guestbook apps and Redis slaves; and, if you look up all pods labled `name=frontend`, you should see one running on each node. ``` core@kube-00 ~/guestbook-example $ kubectl get pods -l name=frontend -POD IP CONTAINER(S) IMAGE(S) HOST LABELS STATUS -4214d4fe-b679-11e4-b6f6-000d3a20a034 10.2.1.6 php-redis kubernetes/example-guestbook-php-redis kube-01/ name=frontend,uses=redisslave,redis-master Running -ae59fa80-b679-11e4-b6f6-000d3a20a034 10.2.4.5 php-redis kubernetes/example-guestbook-php-redis kube-04/ name=frontend,uses=redisslave,redis-master Running -421473f6-b679-11e4-b6f6-000d3a20a034 10.2.2.5 php-redis kubernetes/example-guestbook-php-redis kube-02/ name=frontend,uses=redisslave,redis-master Running -42153c72-b679-11e4-b6f6-000d3a20a034 10.2.3.4 php-redis kubernetes/example-guestbook-php-redis kube-03/ name=frontend,uses=redisslave,redis-master Running +POD IP CONTAINER(S) IMAGE(S) HOST LABELS STATUS +frontend-controller-0133o 10.2.1.19 php-redis kubernetes/example-guestbook-php-redis kube-01/172.18.0.13 name=frontend,uses=redisslave,redis-master Running +frontend-controller-i7hvs 10.2.4.5 php-redis kubernetes/example-guestbook-php-redis kube-04/172.18.0.21 name=frontend,uses=redisslave,redis-master Running +frontend-controller-ls6k1 10.2.3.18 php-redis kubernetes/example-guestbook-php-redis kube-03/172.18.0.20 name=frontend,uses=redisslave,redis-master Running +frontend-controller-oh43e 10.2.2.22 php-redis kubernetes/example-guestbook-php-redis kube-02/172.18.0.14 name=frontend,uses=redisslave,redis-master Running ``` ## Exposing the app to the outside world