Skip to content

Commit

Permalink
Merge pull request #41 from 44smkn/feature/add-sg
Browse files Browse the repository at this point in the history
Add sg
  • Loading branch information
44smkn authored Mar 13, 2022
2 parents a73d9fd + 8849fd5 commit 93fe5ac
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions modules/eks-with-karpenter/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ module "eks" {
type = "egress"
source_node_security_group = true
}

ingress_nodes_karpenter_ports_tcp = {
description = "Karpenter readiness"
protocol = "tcp"
from_port = 8443
to_port = 8443
type = "ingress"
source_node_security_group = true
}
}

# Extend node-to-node security group rules
Expand All @@ -73,6 +82,15 @@ module "eks" {
cidr_blocks = ["0.0.0.0/0"]
ipv6_cidr_blocks = ["::/0"]
}

aws_lb_controller_webhook = {
description = "Cluster API to AWS LB Controller webhook"
protocol = "all"
from_port = 9443
to_port = 9443
type = "ingress"
source_cluster_security_group = true
}
}

# Only need one node to get Karpenter up and running
Expand Down

0 comments on commit 93fe5ac

Please sign in to comment.