mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
Update the broken pod.json example in the README
This commit is contained in:
parent
46ac0aa81d
commit
a00dcc1f70
28
README.md
28
README.md
@ -89,13 +89,29 @@ Where pod.json contains something like:
|
|||||||
|
|
||||||
```
|
```
|
||||||
{
|
{
|
||||||
"ID": "nginx",
|
"id": "php",
|
||||||
"desiredState": {
|
"desiredState": {
|
||||||
"image": "dockerfile/nginx",
|
"manifest": {
|
||||||
"networkPorts": [{
|
"version": "v1beta1",
|
||||||
"containerPort": 80,
|
"id": "php",
|
||||||
"hostPort": 8080
|
"containers": [{
|
||||||
}]
|
"name": "nginx",
|
||||||
|
"image": "dockerfile/nginx",
|
||||||
|
"ports": [{
|
||||||
|
"containerPort": 80,
|
||||||
|
"hostPort": 8080
|
||||||
|
}],
|
||||||
|
"livenessProbe": {
|
||||||
|
"enabled": true,
|
||||||
|
"type": "http",
|
||||||
|
"initialDelaySeconds": 30,
|
||||||
|
"httpGet": {
|
||||||
|
"path": "/index.html",
|
||||||
|
"port": "8080"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"labels": {
|
"labels": {
|
||||||
"name": "foo"
|
"name": "foo"
|
||||||
|
Loading…
Reference in New Issue
Block a user