forked from portworx/px-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
px-marathon-constraints.json
70 lines (70 loc) · 1.88 KB
/
px-marathon-constraints.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"id": "pxcluster1",
"cpus": 2,
"mem": 2048.0,
"instances": 3,
"constraints": [
["hostname", "UNIQUE"],
["pxfabric", "LIKE", "pxclust1"]
],
"container": {
"type": "DOCKER",
"volumes": [],
"docker": {
"image": "portworx/px-enterprise",
"network": "HOST",
"portmappings": [{
"containerPort": 0,
"hostPort": 0,
"protocol": "tcp"
}],
"privileged": true,
"parameters": [{
"key": "volume",
"value": "/run/docker/plugins:/run/docker/plugins"
}, {
"key": "volume",
"value": "/var/lib/osd:/var/lib/osd:shared"
}, {
"key": "volume",
"value": "/dev:/dev"
}, {
"key": "volume",
"value": "/etc/pwx:/etc/pwx"
}, {
"key": "volume",
"value": "/opt/pwx/bin:/export_bin:shared"
}, {
"key": "volume",
"value": "/var/run/docker.sock:/var/run/docker.sock"
}, {
"key": "volume",
"value": "/var/cores:/var/cores"
}, {
"key": "volume",
"value": "/lib/modules:/lib/modules"
} ],
"forcePullImage": false
}
},
"portDefinitions": [],
"ipAddress": {},
"args": [
"--name pxcluster.mesos",
"-k etcd:http://localhost:2379",
"-c mesos-demo1",
"-s /dev/sdb",
"-m bond0",
"-d bond0"
],
"healthChecks": [
{
"protocol": "HTTP",
"port": 9001,
"path": "/status",
"gracePeriodSeconds": 300,
"intervalSeconds": 60,
"timeoutSeconds": 20,
"maxConsecutiveFailures": 3
}]
}