One Service must expose application traffic on port 80 and metrics on port 9090 to the same Pods. What is required?
Select an answer to reveal the explanation.
Short Explanation
One Service can wear two name tags—http and metrics—each with its own port and targetPort. Same Pod selectors, two doors. You don’t need a second Deployment just to publish metrics.
Full Explanation
A Service may define multiple ports; when more than one port is present, each port entry should be named. Each entry maps a Service port to a targetPort on the selected Pods. Multiple Deployments or Ingress are not required merely to expose two ports, and headless pairing is unrelated to this multi-port pattern.