Files
kubernetes/contrib/exec-healthz/pod.json
2015-07-09 15:00:25 -07:00

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
}
}
]
}
}