Minikube ingress not working in Windows 10 professional
You can get your minikube cluster ip with below and proceed.
minikube ip
Add this ip to /etc/hosts
I believe there's 2 issues at play here after testing various scenarios.
- An issue with the current latest minikube, v1.24.0, which messes with the minikube ingress addon and makes the address for the ingress be localhost instead of being the same as the
minikube ip
- An issue with the docker driver which prevents the
minikube ip
from being accessible through curl and the browser.
To resolve both of these issues I downgraded minikube to the previous version, v1.23.2, and then used the HyperV driver, after which the examples and tutorials on the Kubernetes site began to work as intended.
Below are the full steps I took:
Delete any previous instances of minikube that was spun up using v1.24.0 with the same version prior to downgrading just to be safe
minikube delete
Download and replace the minikube executable with v1.23.2
Check that you replaced the executable correctly
minikube version
Turn on HyperV in Turn Windows features on or off
Restart the computer
Create a new minikube instance, but this time with HyperV
minikube start --driver=hyperv
Enable the ingress addon in minikube
minikube addons enable ingress
Deploy all the deployment, service and ingress to this new instance.
Wait a minute or so until an address is assigned to the ingress. Once it's there, update the hosts file and route the domain to the address.
Now check both the address and the domain via curl and/or the browser to see if the issue's resolved.