-
Notifications
You must be signed in to change notification settings - Fork 37
/
load_balancer.tf
66 lines (57 loc) · 1.13 KB
/
load_balancer.tf
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
resource "aws_elb" "dcos" {
name = "dcos-load-balancer"
subnets = ["${aws_subnet.public.id}"]
security_groups = [
"${aws_security_group.master_lb.id}",
"${aws_security_group.admin.id}"
]
health_check {
healthy_threshold = 2
unhealthy_threshold = 2
timeout = 5
target = "HTTP:5050/health"
interval = 30
}
listener {
instance_port = 22
instance_protocol = "tcp"
lb_port = 2222
lb_protocol = "tcp"
}
listener {
instance_port = 5050
instance_protocol = "http"
lb_port = 5050
lb_protocol = "http"
}
listener {
instance_port = 2181
instance_protocol = "tcp"
lb_port = 2181
lb_protocol = "tcp"
}
listener {
instance_port = 8181
instance_protocol = "http"
lb_port = 8181
lb_protocol = "http"
}
listener {
instance_port = 80
instance_protocol = "http"
lb_port = 80
lb_protocol = "http"
}
listener {
instance_port = 443
instance_protocol = "tcp"
lb_port = 443
lb_protocol = "tcp"
}
listener {
instance_port = 8080
instance_protocol = "http"
lb_port = 8080
lb_protocol = "http"
}
}