Skip to content

Commit

Permalink
export UDP ports on mac and windows
Browse files Browse the repository at this point in the history
  • Loading branch information
aojea committed Jun 1, 2024
1 parent 3c8603c commit 6c3df28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/loadbalancer/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ func (s *Server) createLoadBalancer(clusterName string, service *v1.Service, ima
if s.tunnelManager != nil {
// Forward the Service Ports to the host so they are accessible on Mac and Windows
for _, port := range service.Spec.Ports {
if port.Protocol != v1.ProtocolTCP {
if port.Protocol != v1.ProtocolTCP && port.Protocol != v1.ProtocolUDP {
continue
}
args = append(args, fmt.Sprintf("--publish=%d/%s", port.Port, port.Protocol))
Expand Down

0 comments on commit 6c3df28

Please sign in to comment.