Created
October 6, 2016 21:39
-
-
Save greggomann/5404d134b246a6b5fd5a34e4e9dfd412 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "/test-pod", | |
"labels": {}, | |
"version": "2016-09-29T17:26:51.984Z", | |
"user": null, | |
"environment": {}, | |
"containers": [ | |
{ | |
"name": "healthTask1", | |
"exec": { | |
"command": { | |
"shell": "./read-write-server.py 8080 mount1/test-file.txt" | |
} | |
}, | |
"resources": { | |
"cpus": 0.1, | |
"mem": 32, | |
"disk": 32, | |
"gpus": 0 | |
}, | |
"endpoints": [ | |
{ | |
"name": "httpendpoint", | |
"containerPort": 8080, | |
"hostPort": 0, | |
"protocol": [ | |
"tcp" | |
], | |
"labels": {} | |
} | |
], | |
"image": { | |
"kind": "docker", | |
"id": "python:3.5.2-alpine" | |
}, | |
"environment": {}, | |
"user": null, | |
"volumeMounts": [ | |
{ | |
"name": "sharedvolume", | |
"mountPath": "mount1" | |
} | |
], | |
"artifacts": [ | |
{ | |
"uri": "https://s3-us-west-2.amazonaws.com/greg-testing/read-write-server.py", | |
"extract": false, | |
"executable": true, | |
"cache": true, | |
"destPath": "read-write-server.py" | |
} | |
], | |
"labels": {}, | |
"lifecycle": null, | |
"healthCheck": { | |
"http": { | |
"endpoint": "httpendpoint", | |
"path": "/ping", | |
"scheme": "http" | |
}, | |
"gracePeriodSeconds": 30, | |
"intervalSeconds": 2, | |
"maxConsecutiveFailures": 3, | |
"timeoutSeconds": 20, | |
"delaySeconds": 2 | |
} | |
}, | |
{ | |
"name": "healthTask2", | |
"exec": { | |
"command": { | |
"shell": "./read-write-server.py 8081 mount2/test-file.txt" | |
} | |
}, | |
"resources": { | |
"cpus": 0.1, | |
"mem": 32, | |
"disk": 32, | |
"gpus": 0 | |
}, | |
"endpoints": [ | |
{ | |
"name": "httpendpoint2", | |
"containerPort": 8081, | |
"hostPort": 0, | |
"protocol": [ | |
"tcp" | |
], | |
"labels": {} | |
} | |
], | |
"image": { | |
"kind": "docker", | |
"id": "python:3.5.2-alpine" | |
}, | |
"environment": {}, | |
"user": null, | |
"volumeMounts": [ | |
{ | |
"name": "sharedvolume", | |
"mountPath": "mount2" | |
} | |
], | |
"artifacts": [ | |
{ | |
"uri": "https://s3-us-west-2.amazonaws.com/greg-testing/read-write-server.py", | |
"extract": false, | |
"executable": true, | |
"cache": true, | |
"destPath": "read-write-server.py" | |
} | |
], | |
"labels": {}, | |
"lifecycle": null, | |
"healthCheck": { | |
"http": { | |
"endpoint": "httpendpoint2", | |
"path": "/ping", | |
"scheme": "http" | |
}, | |
"gracePeriodSeconds": 30, | |
"intervalSeconds": 2, | |
"maxConsecutiveFailures": 3, | |
"timeoutSeconds": 20, | |
"delaySeconds": 2 | |
} | |
}, | |
{ | |
"name": "clientTask", | |
"exec": { | |
"command": { | |
"shell": "./read-write-server.py 8888 empty-file.txt & while true; do sleep 5 && curl -X GET localhost:8080/write && curl -X GET localhost:8081/read; done" | |
} | |
}, | |
"healthCheck": { | |
"http": { | |
"endpoint": "httpendpoint3", | |
"path": "/ping", | |
"scheme": "http" | |
}, | |
"gracePeriodSeconds": 30, | |
"intervalSeconds": 2, | |
"maxConsecutiveFailures": 3, | |
"timeoutSeconds": 20, | |
"delaySeconds": 2 | |
}, | |
"image": { | |
"kind": "docker", | |
"id": "python:3.5.2" | |
}, | |
"endpoints": [ | |
{ | |
"name": "httpendpoint3", | |
"containerPort": 8888, | |
"hostPort": 0, | |
"protocol": [ | |
"tcp" | |
], | |
"labels": {} | |
} | |
], | |
"artifacts": [ | |
{ | |
"uri": "https://s3-us-west-2.amazonaws.com/greg-testing/read-write-server.py", | |
"extract": false, | |
"executable": true, | |
"cache": true, | |
"destPath": "read-write-server.py" | |
} | |
], | |
"resources": { | |
"cpus": 0.1, | |
"mem": 32, | |
"disk": 32, | |
"gpus": 0 | |
}, | |
"environment": {}, | |
"user": null, | |
"labels": {}, | |
"lifecycle": null | |
} | |
], | |
"secrets": {}, | |
"volumes": [ | |
{ | |
"name": "sharedvolume" | |
} | |
], | |
"networks": [ | |
{ | |
"name": "dcos", | |
"mode": "container", | |
"labels": {} | |
} | |
], | |
"scaling": { | |
"kind": "fixed", | |
"instances": 1, | |
"maxInstances": null | |
}, | |
"scheduling": { | |
"backoff": { | |
"backoff": 1, | |
"backoffFactor": 1.15, | |
"maxLaunchDelay": 3600 | |
}, | |
"upgrade": { | |
"minimumHealthCapacity": 1, | |
"maximumOverCapacity": 1 | |
}, | |
"placement": { | |
"constraints": [], | |
"acceptedResourceRoles": [] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment