Use Ingress instead of Service nodeport
m-czernek opened this issue · 0 comments
m-czernek commented
ch05 uses deployment yaml files to deploy the sample application. To enable ingress, the files expose services as Nodeport.
This makes it quite difficult to reach the service in a multi-node OCP cluster. You have to:
- Check where did the frontend pod get deployed (which node)
- Check the IP address of the node
- enable access to the port on the node
- GET that particular ip:port
The Ingress resource makes this much easier by adding a resolvable hostname. Ingress should work on both minikube and codeready containers, with the added benefit of working on multi-node clusters.