Skip to content

Commit 8db3620

Browse files
committed
open 6783
1 parent c6918e9 commit 8db3620

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

terraform/modules/k8s-cluster/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ resource "null_resource" "setup-master" {
112112
}
113113

114114
inline = [
115-
"sudo scp -o StrictHostKeyChecking=no -i /home/ec2-user/node-key.pem ubuntu@${aws_instance.master.private_ip}:/home/ubuntu/join-command.sh /home/ec2-user/join-command.sh",
115+
"scp -o StrictHostKeyChecking=no -i /home/ec2-user/node-key.pem ubuntu@${aws_instance.master.private_ip}:/home/ubuntu/join-command.sh /home/ec2-user/join-command.sh",
116116
"sudo chmod +x /home/ec2-user/join-command.sh"
117117
]
118118
}

terraform/modules/security-groups/main.tf

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,22 @@ resource "aws_security_group" "master_sg" {
4848
cidr_blocks = [var.private_subnet_cidr]
4949
}
5050

51+
ingress {
52+
description = "Weavenet TCP"
53+
from_port = 6783
54+
to_port = 6783
55+
protocol = "tcp"
56+
cidr_blocks = [var.private_subnet_cidr]
57+
}
58+
59+
ingress {
60+
description = "Weavenet TCP"
61+
from_port = 6784
62+
to_port = 6784
63+
protocol = "udp"
64+
cidr_blocks = [var.private_subnet_cidr]
65+
}
66+
5167
ingress {
5268
description = "Kubelet API"
5369
from_port = 10248

0 commit comments

Comments
 (0)