From aecbb5273c3b8557e72ceadef67fcb41e20711f7 Mon Sep 17 00:00:00 2001 From: jecnua Date: Fri, 1 Sep 2023 15:37:47 +0100 Subject: [PATCH] Linted --- modules/controllers/03-sg.tf | 12 ++++++------ modules/nodes/07-sg.tf | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/modules/controllers/03-sg.tf b/modules/controllers/03-sg.tf index 4852ef2..4b198e4 100644 --- a/modules/controllers/03-sg.tf +++ b/modules/controllers/03-sg.tf @@ -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 } \ No newline at end of file diff --git a/modules/nodes/07-sg.tf b/modules/nodes/07-sg.tf index 95e9609..6bc53fa 100644 --- a/modules/nodes/07-sg.tf +++ b/modules/nodes/07-sg.tf @@ -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 } \ No newline at end of file