Skip to content

Instantly share code, notes, and snippets.

@shettyg
Created July 17, 2017 18:08
Show Gist options
  • Save shettyg/e9b914a3751e607802012511f33a2eb1 to your computer and use it in GitHub Desktop.
Save shettyg/e9b914a3751e607802012511f33a2eb1 to your computer and use it in GitHub Desktop.
{
"name": "task2",
"task_id": {"value" : "9234"},
"agent_id": {"value" : ""},
"container": {
"type": "MESOS",
"mesos": {
"image": {
"type": "DOCKER",
"docker": {
"name": "nginx"
}
}
},
"network_infos" : [{
"name": "ovn",
"labels": {
"labels" : [
{ "key" : "app", "value" : "myapp" },
{ "key" : "logical_switch", "value" : "coke1" }
]
}
}]
},
"resources": [
{
"name": "cpus",
"type": "SCALAR",
"scalar": {
"value": 0.1
},
"roles": "*"
},
{
"name": "mem",
"type": "SCALAR",
"scalar": {
"value": 32
},
"roles": "*"
}
],
"command": {
"value": "nginx -g 'daemon off;'"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment