Update guestbook,walkthrough examples to use kubectl instead of kubecfg.

This commit is contained in:
Jeff Lowdermlk
2014-12-09 10:14:15 -08:00
parent 5523e0344a
commit d5bd440bca
2 changed files with 54 additions and 41 deletions

View File

@@ -9,7 +9,7 @@ scaling.
Having already learned about Pods and how to create them, you may be struck by an urge to create many, many pods. Please do! But eventually you will need a system to organize these pods into groups. The system for achieving this in Kubernetes is Labels. Labels are key-value pairs that are attached to each API object in Kubernetes. Label selectors can be passed along with a RESTful ```list``` request to the apiserver to retrieve a list of objects which match that label selector. For example:
```sh
cluster/kubecfg.sh -l name=nginx list pods
cluster/kubectl.sh get pods -l name=nginx
```
Lists all pods who name label matches 'nginx'. Labels are discussed in detail [elsewhere](https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/labels.md), but they are a core concept for two additional building blocks for Kubernetes, Replication Controllers and Services