Skip to content

Commit

Permalink
Linted
Browse files Browse the repository at this point in the history
  • Loading branch information
jecnua committed Sep 1, 2023
1 parent d57b10a commit aecbb52
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions modules/controllers/03-sg.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ resource "aws_security_group_rule" "allow_all_lb" {
# When deploying metric server it may go on any worker node and it needs to speak to kubelet on any
# other node. We do not know when we create a node all the sg to add, so we allow all the internal subnets
resource "aws_security_group_rule" "allow_kubelet_port_from_internal_subnets" {
type = "ingress"
from_port = 10250
to_port = 10250
protocol = "TCP"
cidr_blocks = var.subnets_private_cidr_block
security_group_id = aws_security_group.k8s_controllers_node_sg.id
type = "ingress"
from_port = 10250
to_port = 10250
protocol = "TCP"
cidr_blocks = var.subnets_private_cidr_block
security_group_id = aws_security_group.k8s_controllers_node_sg.id
}
12 changes: 6 additions & 6 deletions modules/nodes/07-sg.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ resource "aws_security_group_rule" "allow_all_from_k8s_worker_nodes" {
# When deploying metric server it may go on any worker node and it needs to speak to kubelet on any
# other node. We do not know when we create a node all the sg to add, so we allow all the internal subnets
resource "aws_security_group_rule" "allow_kubelet_port_from_internal_subnets" {
type = "ingress"
from_port = 10250
to_port = 10250
protocol = "TCP"
cidr_blocks = values(data.aws_subnet.target).*.cidr_block
security_group_id = aws_security_group.k8s_workers_node_sg.id
type = "ingress"
from_port = 10250
to_port = 10250
protocol = "TCP"
cidr_blocks = values(data.aws_subnet.target).*.cidr_block
security_group_id = aws_security_group.k8s_workers_node_sg.id
}

0 comments on commit aecbb52

Please sign in to comment.