Revert "Revert "Deleting old sample JSON; moving those in use; updating referenc..."

This commit is contained in:
Alex Mohr
2015-03-09 14:44:14 -07:00
parent 56bdd94985
commit da9622a6d7
12 changed files with 9 additions and 154 deletions

View File

@@ -64,7 +64,7 @@ You can create a pod like this:
```
cd kubernetes
cluster/kubectl.sh create -f api/examples/pod.json
cluster/kubectl.sh create -f docs/getting-started-guides/pod.json
```
Where pod.json contains something like:

View File

@@ -77,7 +77,7 @@ can create a pod like this:
```bash
cd kubernetes
cluster/kubectl.sh create -f api/examples/pod.json
cluster/kubectl.sh create -f docs/getting-started-guides/pod.json
```
Where pod.json contains something like:

View File

@@ -74,7 +74,7 @@ However you can't view the nginx start page on localhost. To verify that nginx i
You can control the specifications of a pod via a user defined manifest, and reach nginx through your browser on the port specified therein:
```
cluster/kubectl.sh create -f api/examples/pod.json
cluster/kubectl.sh create -f docs/getting-started-guides/pod.json
```
Congratulations!

View File

@@ -0,0 +1,32 @@
{
"kind": "Pod",
"apiVersion": "v1beta1",
"id": "php",
"desiredState": {
"manifest": {
"version": "v1beta1",
"id": "php",
"containers": [{
"name": "nginx",
"image": "dockerfile/nginx",
"ports": [{
"containerPort": 80,
"hostPort": 8081
}],
"livenessProbe": {
"enabled": true,
"type": "http",
"initialDelaySeconds": 30,
"httpGet": {
"path": "/index.html",
"port": "8081"
}
}
}]
}
},
"labels": {
"name": "foo"
}
}