Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use kubectl in getting started guide #2753

Merged
merged 2 commits into from
Dec 4, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 3 additions & 4 deletions docs/getting-started-guides/azure.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ You can create a pod like this:

```
cd kubernetes
cluster/kubecfg.sh -c api/examples/pod.json create /pods
cluster/kubectl.sh create -f api/examples/pod.json
```

Where pod.json contains something like:
Expand Down Expand Up @@ -101,19 +101,18 @@ Where pod.json contains something like:
You can see your cluster's pods:

```
cluster/kubecfg.sh list pods
cluster/kubectl.sh get pods
```

and delete the pod you just created:

```
cluster/kubecfg.sh delete pods/php
cluster/kubectl.sh delete pods php
```

Look in `api/examples/` for more examples

### Tearing down the cluster
```
cd kubernetes
cluster/kube-down.sh
```
9 changes: 4 additions & 5 deletions docs/getting-started-guides/gce.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ field values:

### Running a container (simple version)

Once you have your instances up and running, the `build-go.sh` script sets up
Once you have your instances up and running, the `hack/build-go.sh` script sets up
your Go workspace and builds the Go components.

The `kubecfg.sh` line below spins up two containers running
Expand Down Expand Up @@ -75,10 +75,9 @@ cluster/kubecfg.sh rm myNginx
Assuming you've run `hack/dev-build-and-up.sh` and `hack/build-go.sh`, you
can create a pod like this:


```bash
cd kubernetes
cluster/kubecfg.sh -c api/examples/pod.json create /pods
cluster/kubectl.sh create -f api/examples/pod.json
```

Where pod.json contains something like:
Expand Down Expand Up @@ -120,13 +119,13 @@ Where pod.json contains something like:
You can see your cluster's pods:

```bash
cluster/kubecfg.sh list pods
cluster/kubectl.sh get pods
```

and delete the pod you just created:

```bash
cluster/kubecfg.sh delete pods/php
cluster/kubectl.sh delete pods php
```

Look in `examples/` for more examples
Expand Down