-1

On Mac, minikube needs to create a tunnel to expose services to the host machine. Normally, it chooses a random port from the available port range for the host side of the tunnel.

My problem is that I am creating a web service which uses Oauth 3rd party authentication. The authorized redirect URIs cannot contain port ranges or wildcards. So, a valid redirect URI can be http://127.0.0.1:30200/callback, but it can't be http://127.0.0.1:*/callback, or something like that.

Is there a way to tell minikube to tunnel through a specific port every time, or fail if the port is unavailable? I'm struggling to find this option.

jdevries3133
  • 135
  • 1
  • 6

1 Answers1

1

I ended up changing the service type from NodePort to LoadBalancer, and then minikube tunnel "just works" and binds the load balancer to the same port on the host machine.

jdevries3133
  • 135
  • 1
  • 6