An application requires the same pod to handle both incoming HTTP and TCP traffic. Which Kubernetes Service type exposes multiple ports?
- A ClusterIP
- B NodePort
- C LoadBalancer (correct answer)
- D ExternalName
Shortcut: LoadBalancer services can expose multiple ports. ports array. Each port gets its own rule on the Azure Load Balancer.
LoadBalancer services can expose multiple ports. You define them in the spec.ports array. Each port gets its own rule on the Azure Load Balancer.