Merge pull request #2753 from MikeJeffrey/kubectl
Use kubectl in getting started guide
This commit is contained in:
commit
e2cf1690da
@ -59,7 +59,7 @@ You can create a pod like this:
|
|||||||
|
|
||||||
```
|
```
|
||||||
cd kubernetes
|
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:
|
Where pod.json contains something like:
|
||||||
@ -101,19 +101,18 @@ Where pod.json contains something like:
|
|||||||
You can see your cluster's pods:
|
You can see your cluster's pods:
|
||||||
|
|
||||||
```
|
```
|
||||||
cluster/kubecfg.sh list pods
|
cluster/kubectl.sh get pods
|
||||||
```
|
```
|
||||||
|
|
||||||
and delete the pod you just created:
|
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
|
Look in `api/examples/` for more examples
|
||||||
|
|
||||||
### Tearing down the cluster
|
### Tearing down the cluster
|
||||||
```
|
```
|
||||||
cd kubernetes
|
|
||||||
cluster/kube-down.sh
|
cluster/kube-down.sh
|
||||||
```
|
```
|
||||||
|
@ -47,7 +47,7 @@ field values:
|
|||||||
|
|
||||||
### Running a container (simple version)
|
### 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.
|
your Go workspace and builds the Go components.
|
||||||
|
|
||||||
The `kubecfg.sh` line below spins up two containers running
|
The `kubecfg.sh` line below spins up two containers running
|
||||||
@ -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
|
Assuming you've run `hack/dev-build-and-up.sh` and `hack/build-go.sh`, you
|
||||||
can create a pod like this:
|
can create a pod like this:
|
||||||
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd kubernetes
|
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:
|
Where pod.json contains something like:
|
||||||
@ -120,13 +119,13 @@ Where pod.json contains something like:
|
|||||||
You can see your cluster's pods:
|
You can see your cluster's pods:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cluster/kubecfg.sh list pods
|
cluster/kubectl.sh get pods
|
||||||
```
|
```
|
||||||
|
|
||||||
and delete the pod you just created:
|
and delete the pod you just created:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cluster/kubecfg.sh delete pods/php
|
cluster/kubectl.sh delete pods php
|
||||||
```
|
```
|
||||||
|
|
||||||
Look in `examples/` for more examples
|
Look in `examples/` for more examples
|
||||||
|
Loading…
Reference in New Issue
Block a user