-
Notifications
You must be signed in to change notification settings - Fork 0
/
009_prefix-11-norbix-kubernetes-master-security-group-0.tf
67 lines (65 loc) · 1.6 KB
/
009_prefix-11-norbix-kubernetes-master-security-group-0.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
67
resource "aws_security_group" "prefix-11-norbix-kubernetes-master-security-group-0" {
name = "prefix-11-norbix-kubernetes-master-security-group-0"
vpc_id = aws_vpc.prefix-11-norbix-vpc.id
tags = {
cluster_name = "11-norbix"
cluster_version = "2.0.1dev"
Name = "prefix-11-norbix-kubernetes-master-security-group-0"
}
ingress {
description = "1 - Allow SSH"
protocol = "tcp"
from_port = 22
to_port = 22
cidr_blocks = ["0.0.0.0/0"]
}
ingress {
description = "2 - Allow node_exporter traffic"
protocol = "tcp"
from_port = 9100
to_port = 9100
cidr_blocks = ["10.1.0.0/20"]
}
egress {
description = "3 - Allow out"
protocol = -1
from_port = 0
to_port = 0
cidr_blocks = ["0.0.0.0/0"]
}
ingress {
description = "4 - Allow repository traffic"
protocol = "tcp"
from_port = 80
to_port = 80
cidr_blocks = ["10.1.0.0/20"]
}
ingress {
description = "5 - Allow subnet traffic"
protocol = -1
from_port = 0
to_port = 0
cidr_blocks = ["10.1.1.0/24"]
}
ingress {
description = "6 - Allow monitoring subnet traffic"
protocol = -1
from_port = 0
to_port = 0
cidr_blocks = ["10.1.4.0/24"]
}
ingress {
description = "7 - Allow node subnet traffic"
protocol = -1
from_port = 0
to_port = 0
cidr_blocks = ["10.1.2.0/24"]
}
ingress {
description = "8 - Allow load-balancer subnet traffic"
protocol = -1
from_port = 0
to_port = 0
cidr_blocks = ["10.1.7.0/24"]
}
}