Created
February 22, 2017 18:46
-
-
Save shettyg/296068e9ff360856155cf81dfca97926 to your computer and use it in GitHub Desktop.
Mesos Task
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
{ | |
"name": "task1", | |
"task_id": {"value" : "1234"}, | |
"agent_id": {"value" : ""}, | |
"container": { | |
"type": "MESOS", | |
"mesos": { | |
"image": { | |
"type": "DOCKER", | |
"docker": { | |
"name": "fedora/apache" | |
} | |
} | |
}, | |
"network_infos" : [{ | |
"name": "mynet", | |
"labels": { | |
"labels" : [ | |
{ "key" : "app", "value" : "myapp" }, | |
{ "key" : "env", "value" : "prod" } | |
] | |
} | |
}] | |
}, | |
"resources": [ | |
{ | |
"name": "cpus", | |
"type": "SCALAR", | |
"scalar": { | |
"value": 0.1 | |
}, | |
"role": "*" | |
}, | |
{ | |
"name": "mem", | |
"type": "SCALAR", | |
"scalar": { | |
"value": 32 | |
}, | |
"role": "*" | |
} | |
], | |
"command": { | |
"value": "/run-apache.sh" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment