Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6a38836

Browse files
author
Chao Xu
committed
let azure getting started guides point to examples/
1 parent 0378894 commit 6a38836

File tree

2 files changed

+4
-84
lines changed

2 files changed

+4
-84
lines changed

docs/getting-started-guides/azure.md

Lines changed: 3 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -37,90 +37,10 @@ You can then use the `cluster/kube-*.sh` scripts to manage your azure cluster, s
3737
The script above will start (by default) a single master VM along with 4 worker VMs. You
3838
can tweak some of these parameters by editing `cluster/azure/config-default.sh`.
3939

40-
### Running a container (simple version)
40+
### Getting started with your cluster
41+
See [a simple nginx example](../../examples/simple-nginx.md) to try out your new cluster.
4142

42-
Once you have your instances up and running, the `hack/build-go.sh` script sets up
43-
your Go workspace and builds the Go components.
44-
45-
The `kubectl.sh` line below spins up two containers running
46-
[Nginx](http://nginx.org/en/) running on port 80:
47-
48-
```bash
49-
cluster/kubectl.sh run my-nginx --image=nginx --replicas=2 --port=80
50-
```
51-
52-
To stop the containers:
53-
54-
```bash
55-
cluster/kubectl.sh stop rc my-nginx
56-
```
57-
58-
To delete the containers:
59-
60-
```bash
61-
cluster/kubectl.sh delete rc my-nginx
62-
```
63-
64-
### Running a container (more complete version)
65-
66-
67-
You can create a pod like this:
68-
69-
70-
```
71-
cd kubernetes
72-
cluster/kubectl.sh create -f docs/getting-started-guides/pod.json
73-
```
74-
75-
Where pod.json contains something like:
76-
77-
```
78-
{
79-
"id": "php",
80-
"kind": "Pod",
81-
"apiVersion": "v1beta1",
82-
"desiredState": {
83-
"manifest": {
84-
"version": "v1beta1",
85-
"id": "php",
86-
"containers": [{
87-
"name": "nginx",
88-
"image": "nginx",
89-
"ports": [{
90-
"containerPort": 80,
91-
"hostPort": 8080
92-
}],
93-
"livenessProbe": {
94-
"enabled": true,
95-
"type": "http",
96-
"initialDelaySeconds": 30,
97-
"httpGet": {
98-
"path": "/index.html",
99-
"port": 8080
100-
}
101-
}
102-
}]
103-
}
104-
},
105-
"labels": {
106-
"name": "foo"
107-
}
108-
}
109-
```
110-
111-
You can see your cluster's pods:
112-
113-
```
114-
cluster/kubectl.sh get pods
115-
```
116-
117-
and delete the pod you just created:
118-
119-
```
120-
cluster/kubectl.sh delete pods php
121-
```
122-
123-
Look in `api/examples/` for more examples
43+
For more complete applications, please look in the [examples directory](../../examples).
12444

12545
### Tearing down the cluster
12646
```

docs/getting-started-guides/gce.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ potential issues with client/server version skew.
6767
### Getting started with your cluster
6868
See [a simple nginx example](../../examples/simple-nginx.md) to try out your new cluster.
6969

70-
For more complete applications, please look in the [examples directory](../../examples)
70+
For more complete applications, please look in the [examples directory](../../examples).
7171

7272
### Tearing down the cluster
7373
To remove/delete/teardown the cluster, use the `kube-down.sh` script.

0 commit comments

Comments
 (0)