Minikube with ingress example not working

Here’s what worked for me:

  1. minikube start

  2. minikube addons enable ingress

  3. minikube addons enable ingress-dns

  4. Wait until you see the ingress-nginx-controller-XXXX is up and running using Kubectl get pods -n ingress-nginx

  5. Create an ingress using the K8s example yaml file

  6. Update the service section to point to the NodePort Service that you already created

  7. Append
    127.0.0.1 hello-world.info
    to your /etc/hosts file on MacOS (NOTE:
    Do NOT use the Minikube IP
    )

  8. Run minikube tunnel ( Keep the window open. After you entered the password there will be no more messages, and the cursor just blinks)

  9. Hit the hello-world.info ( or whatever host you configured in the yaml file) in a browser and it should work

Leave a Comment