-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontainerpilot_ui.json
74 lines (74 loc) · 1.78 KB
/
containerpilot_ui.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
71
72
73
74
{
"consul":"{{ .HOST }}:8500",
"logging":{
"level": "{{ .CP_LOG_LEVEL | default "INFO" }}",
"format":"default",
"output":"stdout"
},
"services":[
{
"name":"{{ .MPAAS_APPLICATION_NAME }}-{{ .MPAAS_ENVIRONMENT }}",
"port":{{ .PORT_5000 }},
"health":[
"/usr/bin/curl",
"--fail",
"-s",
"-o",
"/dev/null",
"http://{{ .HOST }}:{{ .PORT_5000 }}/alive.txt"
],
"interfaces":[
"static:{{ .HOST }}"
],
"poll":10,
"ttl":30,
"timeout":"10s",
"tags":[
"{{ .MESOS_TASK_ID }}",
"iid-{{ .MESOS_TASK_ID }}",
"app-{{ .MPAAS_APPLICATION_NAME }}",
"env-{{ .MPAAS_ENVIRONMENT }}",
"ver-{{ .MPAAS_APPLICATION_VERSION }}",
"metrics-{{ .ENABLE_METRICS | default true }}",
"marathon",
"netscaler"
],
"consul":{
"enableTagOverride":true,
"deregisterCriticalServiceAfter": "90m"
}
},
{
"name":"{{ .MPAAS_APPLICATION_NAME }}-secret-{{ .MPAAS_ENVIRONMENT }}",
"port":{{ .PORT_10080 }},
"health":[
"/usr/bin/curl",
"--fail",
"-s",
"-o",
"/dev/null",
"http://{{ .HOST }}:{{ .PORT_10080 }}/alive.txt"
],
"interfaces":[
"static:{{ .HOST }}"
],
"poll":10,
"ttl":30,
"timeout":"10s",
"tags":[
"{{ .MESOS_TASK_ID }}",
"app-{{ .MPAAS_APPLICATION_NAME }}",
"env-{{ .MPAAS_ENVIRONMENT }}",
"ver-{{ .MPAAS_APPLICATION_VERSION }}",
"metrics-{{ .ENABLE_METRICS | default true }}",
"marathon",
"netscaler",
"secret"
],
"consul":{
"enableTagOverride":true,
"deregisterCriticalServiceAfter": "90m"
}
}
]
}