From 26a1687a0e29400e578ccdbe5aeb6133a86efc95 Mon Sep 17 00:00:00 2001 From: johndmulhausen Date: Thu, 31 Mar 2016 12:55:32 -0700 Subject: [PATCH] Update index.md --- docs/user-guide/environment-guide/index.md | 28 +++++++++++----------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/docs/user-guide/environment-guide/index.md b/docs/user-guide/environment-guide/index.md index 938f0f0b10..4b5ec7e309 100644 --- a/docs/user-guide/environment-guide/index.md +++ b/docs/user-guide/environment-guide/index.md @@ -1,5 +1,5 @@ ---- ---- +--- +--- This example demonstrates running pods, replication controllers, and services. It shows two types of pods: frontend and backend, with @@ -23,15 +23,15 @@ for your platform. ## Optional: Build your own containers The code for the containers is under -[containers/](/docs/user-guide/environment-guide/containers/) +[containers/](/docs/user-guide/containers/) ## Get everything running -```shell -kubectl create -f ./backend-rc.yaml -kubectl create -f ./backend-srv.yaml -kubectl create -f ./show-rc.yaml -kubectl create -f ./show-srv.yaml +```shell +kubectl create -f ./backend-rc.yaml +kubectl create -f ./backend-srv.yaml +kubectl create -f ./show-rc.yaml +kubectl create -f ./show-srv.yaml ``` ## Query the service @@ -46,7 +46,7 @@ your service. Run `curl :80` to query the service. You should get something like this back: -```shell +```shell Pod Name: show-rc-xxu6i Pod Namespace: default USER_VAR: important information @@ -66,8 +66,8 @@ Response from backend Backend Container Backend Pod Name: backend-rc-6qiya Backend Namespace: default -``` - +``` + First the frontend pod's information is printed. The pod name and [namespace](https://github.com/kubernetes/kubernetes/blob/{{page.githubbranch}}/docs/design/namespaces.md) are retrieved from the [Downward API](/docs/user-guide/downward-api). Next, `USER_VAR` is the name of @@ -86,8 +86,8 @@ service. This results in a different backend pod servicing each request as well. ## Cleanup - + ```shell kubectl delete rc,service -l type=show-type -kubectl delete rc,service -l type=backend-type -``` \ No newline at end of file +kubectl delete rc,service -l type=backend-type +```