@@ -37,90 +37,10 @@ You can then use the `cluster/kube-*.sh` scripts to manage your azure cluster, s
37
37
The script above will start (by default) a single master VM along with 4 worker VMs. You
38
38
can tweak some of these parameters by editing ` cluster/azure/config-default.sh ` .
39
39
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.
41
42
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 ) .
124
44
125
45
### Tearing down the cluster
126
46
```
0 commit comments