forked from linkerd/linkerd-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconsul-agent-task-definition.json
80 lines (80 loc) · 1.67 KB
/
consul-agent-task-definition.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
75
76
77
78
79
80
{
"containerDefinitions": [
{
"name": "consul-agent",
"image": "docker.io/consul:0.8.5",
"command": [
"consul", "agent", "-ui",
"-config-file", "/etc/consul/consul-agent.json",
"-data-dir", "/consul/data"
],
"memory": 128,
"portMappings": [
{
"hostPort": 8301,
"containerPort": 8301,
"protocol": "tcp"
},
{
"hostPort": 8301,
"containerPort": 8301,
"protocol": "udp"
},
{
"hostPort": 8400,
"containerPort": 8400,
"protocol": "tcp"
},
{
"hostPort": 8500,
"containerPort": 8500,
"protocol": "tcp"
},
{
"hostPort": 53,
"containerPort": 53,
"protocol": "udp"
}
],
"essential": true,
"mountPoints": [
{
"containerPath": "/etc/consul",
"sourceVolume": "consul-config",
"readOnly": true
},
{
"containerPath": "/consul/data",
"sourceVolume": "consul-data",
"readOnly": false
},
{
"containerPath": "/var/run/docker.sock",
"sourceVolume": "consul-docker",
"readOnly": true
}
]
}
],
"volumes": [
{
"host": {
"sourcePath": "/opt/consul/config"
},
"name": "consul-config"
},
{
"host": {
"sourcePath": "/opt/consul/data"
},
"name": "consul-data"
},
{
"host": {
"sourcePath": "/var/run/docker.sock"
},
"name": "consul-docker"
}
],
"family": "consul-agent"
}