zun/api-ref/source/samples/container-create-req.json
weikeyou 0fc74ffd02 Add healthcheck to api-ref
Change-Id: I652e239578fd883898920bdaf9e98fc90041ebc9
Partial-Implements: blueprint support-healthycheck
2018-08-07 09:44:54 +08:00

54 lines
1.1 KiB
JSON

{
"environment":{
"foo": "bar"
},
"labels":{
"app": "hello"
},
"image": "ubuntu",
"command": "/bin/sh -c 'echo hello'",
"name": "test",
"cpu": 2,
"memory": 500,
"workdir": "/home/ubuntu",
"image_pull_policy": "always",
"restart_policy":{
"Name": "no",
"MaximumRetryCount": 0
},
"interactive": false,
"image_driver": "docker",
"security_groups": [
"default"
],
"nets": [
{
"v4-fixed-ip": "",
"network": "",
"v6-fixed-ip": "",
"port": "890699a9-4690-4bd6-8b70-3a9c1be77ecb"
}
],
"runtime": "runc",
"hostname": "testhost",
"auto_remove": false,
"auto_heal": false,
"availability_zone": "nova",
"hints": {
"foo": "bar"
},
"mounts": [
{
"source": "myvol",
"destination": "/data"
}
],
"privileged": false,
"healthcheck": {
"cmd": "stat /etc/passwd || exit 1",
"interval": 3,
"retries": 2,
"timeout": 5
}
}