🔥 3-day streak
Certified Kubernetes Administrator (CKA)70 / 125
Question 70 of 125
A team exposes a web application through a Service of type LoadBalancer. The Deployment's Pod template defines two containers: the frontend container listens on port 8080 (named 'http') and a metrics sidecar listens on port 9100 (named 'metrics'). The team wants the external LoadBalancer to route port 80 to the frontend and port 9090 to the metrics endpoint, using container port names rather than hardcoded numbers so future container port changes don't break the Service. Which Service ports configuration achieves this correctly?
Reviewed for accuracy · Report an issueNext question