Automation, Orchestration, and Scripting

A front-end application in a cluster cannot reliably reach a back-end application. The back-end pods are replaced regularly, and each new pod receives a different IP address. Which object gives the front end a stable address and name for reaching whichever back-end pods are currently running?

Show the answer

Correct answerA. Service

A Service provides a stable virtual IP and DNS name and load-balances across the pods that match its label selector. An Ingress is tempting, but it routes external HTTP/HTTPS traffic into Services and does not give internal pods a stable address by itself.