Skip to content

Commit b6fdb56

Browse files
committed
Open cAdvisor port (#9)
1 parent 0d4af44 commit b6fdb56

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

terraform/terraform_aws/inputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ variable "tag" {
1111
variable "cluster_size" {
1212
type = number
1313
description = "Number of nodes in the cluster"
14-
default = 2
14+
default = 3
1515
}

terraform/terraform_aws/modules/swarm-security-group/main.tf

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,25 @@ resource "aws_security_group_rule" "swarm_sgr_12" {
129129
cidr_blocks = ["0.0.0.0/0"]
130130

131131
}
132+
133+
resource "aws_security_group_rule" "swarm_sgr_13" {
134+
security_group_id = var.security_group_id
135+
136+
type = "ingress"
137+
from_port = 0
138+
to_port = 49153
139+
protocol = "tcp"
140+
cidr_blocks = ["0.0.0.0/0"]
141+
142+
}
143+
144+
resource "aws_security_group_rule" "swarm_sgr_14" {
145+
security_group_id = var.security_group_id
146+
147+
type = "egress"
148+
from_port = 0
149+
to_port = 49153
150+
protocol = "tcp"
151+
cidr_blocks = ["0.0.0.0/0"]
152+
153+
}

0 commit comments

Comments
 (0)