Skip to content

Instantly share code, notes, and snippets.

@minyk
Created September 12, 2017 01:51
Show Gist options
  • Save minyk/a9ac8d2257a075cd1160829ae78f5f60 to your computer and use it in GitHub Desktop.
Save minyk/a9ac8d2257a075cd1160829ae78f5f60 to your computer and use it in GitHub Desktop.
DC/OS External Volume Test
{
"id": "/drake/volumetest",
"backoffFactor": 1.15,
"backoffSeconds": 1,
"constraints": [
[
"hostname",
"LIKE",
"192.10.250.234"
]
],
"container": {
"portMappings": [
{
"containerPort": 8080,
"hostPort": 0,
"protocol": "tcp",
"servicePort": 10199,
"name": "web"
}
],
"type": "DOCKER",
"volumes": [
{
"containerPath": "/data/test-rexray-volume",
"external": {
"name": "my-test-vol",
"provider": "dvdi",
"options": {
"dvdi/driver": "rexray"
}
},
"mode": "RW"
}
],
"docker": {
"image": "minyk/network-test:alpine",
"forcePullImage": true,
"privileged": false,
"parameters": []
}
},
"cpus": 0.1,
"disk": 0,
"healthChecks": [
{
"gracePeriodSeconds": 300,
"intervalSeconds": 60,
"maxConsecutiveFailures": 3,
"portIndex": 0,
"timeoutSeconds": 20,
"delaySeconds": 15,
"protocol": "MESOS_HTTP",
"path": "/"
}
],
"instances": 1,
"maxLaunchDelaySeconds": 3600,
"mem": 256,
"gpus": 0,
"networks": [
{
"name": "dev",
"mode": "container"
}
],
"requirePorts": false,
"upgradeStrategy": {
"maximumOverCapacity": 0,
"minimumHealthCapacity": 0
},
"killSelection": "YOUNGEST_FIRST",
"unreachableStrategy": {
"inactiveAfterSeconds": 300,
"expungeAfterSeconds": 600
},
"fetch": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment