Fix some readme and script bugs in examples (take 2).

v2: Resolve issues from comments, fix bugs in update-demo example, rename files for clarity, add turn-down steps.

v3: Add more set commands, clean up rest of env var checks.
This commit is contained in:
Max Forbes
2014-09-10 13:56:56 -07:00
committed by Filipe Brandenburger
parent 57b721dd05
commit bd196ea49c
11 changed files with 81 additions and 31 deletions

View File

@@ -8,6 +8,11 @@ The example combines a web frontend, a redis master for storage and a replicated
This example assumes that you have forked the repository and [turned up a Kubernetes cluster](https://github.com/GoogleCloudPlatform/kubernetes#contents):
```shell
$ cd kubernetes
$ hack/dev-build-and-up.sh
```
### Step One: Turn up the redis master.
Use the file `examples/guestbook/redis-master.json` which describes a single pod running a redis key-value server in a container.
@@ -307,3 +312,11 @@ For details about limiting traffic to specific sources, see the [gcutil document
[cloud-console]: https://console.developer.google.com
[gcutil-docs]: https://developers.google.com/compute/docs/gcutil/reference/firewall#addfirewall
### Step Six: Cleanup
To turn down a Kubernetes cluster:
```shell
$ cluster/kube-down.sh
```