Sanitation must publish several citizen HTTP apps with host- and path-based routing on a shared entrypoint. When is Gateway API a better fit than exposing each app with only a raw NodePort?
Select an answer to reveal the explanation.
Short Explanation
NodePort is a plain numbered side door on every node. Gateway API is the shared lobby with host and path signs—use it when citizens need proper HTTP routing, not just a raw high port.
Full Explanation
NodePort exposes a Service on a port across nodes at L4 and does not provide rich HTTP host/path multiplexing by itself. Gateway API (like Ingress) targets L7 north-south HTTP routing on shared entrypoints. Choose Gateway API when host/path routing and edge HTTP features matter; keep NodePort for simpler L4 exposure needs.