Skip to content

Commit

Permalink
feat: added rules to allow UDP to be used for node port ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
robo-cap authored and hyder committed Nov 18, 2024
1 parent aea0623 commit dc41e91
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/network/nsg-loadbalancers-int.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ locals {
"Allow TCP egress from internal load balancers to workers for Node Ports" : {
protocol = local.tcp_protocol, port_min = local.node_port_min, port_max = local.node_port_max, destination = local.worker_nsg_id, destination_type = local.rule_type_nsg,
},
"Allow UDP egress from internal load balancers to workers for Node Ports" : {
protocol = local.udp_protocol, port_min = local.node_port_min, port_max = local.node_port_max, destination = local.worker_nsg_id, destination_type = local.rule_type_nsg,
},
"Allow ICMP egress from internal load balancers to worker nodes for path discovery" : {
protocol = local.icmp_protocol, port = local.all_ports, destination = local.worker_nsg_id, destination_type = local.rule_type_nsg,
},
Expand Down
3 changes: 3 additions & 0 deletions modules/network/nsg-loadbalancers-pub.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ locals {
"Allow TCP egress from public load balancers to workers nodes for NodePort traffic" : {
protocol = local.tcp_protocol, port_min = local.node_port_min, port_max = local.node_port_max, destination = local.worker_nsg_id, destination_type = local.rule_type_nsg,
},
"Allow UDP egress from public load balancers to workers nodes for NodePort traffic" : {
protocol = local.udp_protocol, port_min = local.node_port_min, port_max = local.node_port_max, destination = local.worker_nsg_id, destination_type = local.rule_type_nsg,
},
"Allow TCP egress from public load balancers to worker nodes for health checks" : {
protocol = local.tcp_protocol, port = local.health_check_port, destination = local.worker_nsg_id, destination_type = local.rule_type_nsg,
},
Expand Down
6 changes: 6 additions & 0 deletions modules/network/nsg-workers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ locals {
"Allow TCP ingress to workers from internal load balancers" : {
protocol = local.tcp_protocol, port_min = local.node_port_min, port_max = local.node_port_max, source = local.int_lb_nsg_id, source_type = local.rule_type_nsg,
},
"Allow UDP ingress to workers from internal load balancers" : {
protocol = local.udp_protocol, port_min = local.node_port_min, port_max = local.node_port_max, source = local.int_lb_nsg_id, source_type = local.rule_type_nsg,
},
"Allow TCP ingress to workers for health check from internal load balancers" : {
protocol = local.tcp_protocol, port = local.health_check_port, source = local.int_lb_nsg_id, source_type = local.rule_type_nsg,
},
Expand All @@ -75,6 +78,9 @@ locals {
"Allow TCP ingress to workers from public load balancers" : {
protocol = local.tcp_protocol, port_min = local.node_port_min, port_max = local.node_port_max, source = local.pub_lb_nsg_id, source_type = local.rule_type_nsg,
},
"Allow UDP ingress to workers from public load balancers" : {
protocol = local.udp_protocol, port_min = local.node_port_min, port_max = local.node_port_max, source = local.pub_lb_nsg_id, source_type = local.rule_type_nsg,
},
"Allow TCP ingress to workers for health check from public load balancers" : {
protocol = local.tcp_protocol, port = local.health_check_port, source = local.pub_lb_nsg_id, source_type = local.rule_type_nsg,
},
Expand Down

0 comments on commit dc41e91

Please sign in to comment.