0

I use ingress in minikube

kubectl get ingress

http-ingress   nginx   example.com   192.168.49.2   80      44m

I edited /etc/hosts 192.168.49.2 example.com

when I use curl example.com it is work. but when I use curl minikube ip (curl 192.168.49.2) return 404 not found

Muha-mmad
  • 33
  • 4

1 Answers1

0

This issue may be caused by an incorrect configuration of Ingress and can you share your ingress in question. Try running the “kubectl get” command and make sure your Ingress configuration is correct. Additionally, if you are using Minikube, you may need to configure the Ingress Controller to use the Minikube IP address instead of localhost. For more information, refer to the official Minikube documentation on Ingress and this SO

Hemanth Kumar
  • 2,728
  • 1
  • 4
  • 19