kubernetes-operators-book/chapters

Use Ingress instead of Service nodeport

m-czernek opened this issue · 0 comments

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:

  1. Check where did the frontend pod get deployed (which node)
  2. Check the IP address of the node
  3. enable access to the port on the node
  4. 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.