38 lines
761 B
JSON
38 lines
761 B
JSON
{
|
|
"kind": "Pod",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "simple"
|
|
},
|
|
"spec": {
|
|
"containers": [
|
|
{
|
|
"name": "healthz",
|
|
"image": "gcr.io/google_containers/exechealthz:1.0",
|
|
"args": [
|
|
"-cmd=nslookup localhost"
|
|
],
|
|
"ports": [
|
|
{
|
|
"containerPort": 8080,
|
|
"protocol": "TCP"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name":"test-container",
|
|
"image":"ubuntu:14.04",
|
|
"command": ["bash", "-c", "while true; do sleep 100; done"],
|
|
"livenessProbe": {
|
|
"httpGet": {
|
|
"path": "/healthz",
|
|
"port":8080
|
|
},
|
|
"initialDelaySeconds": 10,
|
|
"timeoutSeconds": 2
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|