简体   繁体   中英

ingress return 404 not found when use minikube ip

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM