Skip to content

Commit

Permalink
fix: security group rule for loadbalancers had the wrong direction (O…
Browse files Browse the repository at this point in the history
…UT vs IN)

Signed-off-by: Paul Bastide <[email protected]>
  • Loading branch information
prb112 committed Jan 10, 2025
1 parent d400bbf commit ba0c408
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/1_vpc_support/2_security_groups/vpc_sgs_ocp.tf
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ resource "ibm_is_security_group_rule" "cp_internal_sg_r2" {
}

# sg-kube-api-lb
# TCP (IN) 22623 192.168.200.0/24
# TCP (IN) 22623 192.168.200.0/24
# TCP (Out) 22623 192.168.200.0/24
# TCP (Out) 6443 192.168.200.0/24
# TCP (IN) 6443 192.168.200.0/24
# TCP (Out) 80 192.168.200.0/24
# TCP (Out) 443 192.168.200.0/24

Expand Down Expand Up @@ -176,7 +176,7 @@ resource "ibm_is_security_group_rule" "kube_api_lb_sg_mc_out" {

resource "ibm_is_security_group_rule" "kube_api_lb_sg_api_out" {
group = local.kube_api_lb_sg[0].id
direction = "outbound"
direction = "inbound"
remote = var.powervs_machine_cidr
tcp {
port_min = 6443
Expand Down

0 comments on commit ba0c408

Please sign in to comment.