forked from NinesStack/nmesos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example-full-service.yml
58 lines (48 loc) · 2.11 KB
/
example-full-service.yml
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
## Example config for integration testing
nmesos_version: '0.1.0' ## Min nmesos required to execute this config
common:
resources:
memoryMb: 128
container:
image: hubspot/singularity-test-service # Docker repo/image without the tag
forcePullImage: true # Optional to force pull (default false)
#command: "echo test job" # Custom command
#network: HOST # Optional parameter the default is Bridge
ports:
- 8080 # Exposed port by the container (Mesos will auto assign a external port)
volumes:
- /tmp/foo:/tmp/foo # (HOST:CONTAINER) with default rw or (HOST:CONTAINER:rw)
labels:
ServiceName: "exampleServer"
env_vars:
NEW_RELIC_LICENSE_KEY: "xxxxx"
JAVA_OPTS: -Xmx64m
#dockerParameters: # Aditional Docker conf for (cap-add, log-driver,...)
# cap-add: NET_ADMIN
singularity:
#schedule: "*/5 * * * *" # mark the Singularity Request type as SCHEDULED and set the Cron
deployInstanceCountPerStep: 1 # Number of instances deployed at once.
autoAdvanceDeploySteps: true # false to have Canary deployments.
deployStepWaitTimeMs: 1000 # Time to wait between deployments
healthcheckUri: "/hello" # Used for singularity to determine if a deploy was success
#slavePlacement: "SPREAD_ALL_SLAVES" # Ignore num instances and auto scale up/down to all nodes
#requiredRole: "OPS" # Only use reserved resources with this role
# Optional configuration to define environments variables to be passed to the Mesos executor
# executor:
# customExecutorCmd: "/opt/mesos/executor.sh" # Optional custom Mesos Executor.
# env_vars:
# EXECUTOR_SIDECAR_DISCOVER: "false" # Default true, false => the executor will not healthcheck
# EXECUTOR_SIDECAR_BACKOFF: "20m" # default 1m
environments:
dev:
resources:
instances: 1 # Number of instances to deploy
cpus: 0.1
singularity:
url: "http://192.168.99.100:7099/singularity"
prod:
resources:
instances: 5
cpus: 1
singularity:
url: "http://prod-singularity/singularity"