File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments