mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-17 15:13:08 +00:00
Deleting old sample JSON; moving those in use; updating references
This commit is contained in:
@@ -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:
|
||||
|
@@ -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:
|
||||
|
@@ -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!
|
||||
|
32
docs/getting-started-guides/pod.json
Normal file
32
docs/getting-started-guides/pod.json
Normal 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"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user