Last active
July 17, 2017 18:06
-
-
Save shettyg/75edf1d1f3e9fa504e980424a9275b01 to your computer and use it in GitHub Desktop.
Mesos task file with apache webserver for ovn
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": "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": "/run-apache.sh" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment