An Ingress backend must target Service payments on port 8080, while Pods listen on containerPort 8080 mapped from Service port 80 via targetPort. Which port should the Ingress backend reference?
Select an answer to reveal the explanation.
Short Explanation
Ingress talks to Services, not raw container ports by imagination. Put the Service’s port (number or name) in the backend. targetPort is the Service-to-Pod hop that already happened behind the scenes.
Full Explanation
Ingress backends reference a Service name and a Service port (numeric or named). The Service then maps that port to Pods via targetPort/containerPort. Pointing Ingress at hostPort, inventing ports, or involving etcd is incorrect. Matching the Service port field avoids 503s from port mismatches.