You have a Kubernetes cluster hosting multiple web applications. You want to expose them externally with a single IP address and route traffic based on URL paths. Which option best explains when to use an Ingress instead of a LoadBalancer Service?
Think about how many IP addresses you want to manage and if you need routing rules.
Ingress allows exposing multiple services through one IP with routing rules like URL paths or hostnames. LoadBalancer Service creates a separate external IP per service without routing.
You run kubectl get svc on a service defined as type LoadBalancer. What output will you see in the EXTERNAL-IP column once the cloud provider assigns an IP?
kubectl get svc my-serviceCheck the service type and what EXTERNAL-IP shows when assigned.
A LoadBalancer service gets an external IP from the cloud provider, shown in the EXTERNAL-IP column. Before assignment, it shows <pending>.
Arrange the steps in the correct order to expose multiple Kubernetes services externally using a single IP with Ingress.
Think about creating services first, then the controller, then the rules.
You first create services, then deploy the Ingress controller, define Ingress rules, and finally access apps via the Ingress IP.
You created a LoadBalancer service in your Kubernetes cluster on a cloud provider, but the EXTERNAL-IP remains <pending> indefinitely. What is the most likely cause?
Consider cloud provider support for LoadBalancer services.
If the cloud provider does not support LoadBalancer type services, Kubernetes cannot provision an external IP, so it stays <pending>.
You manage a Kubernetes cluster on a cloud provider with limited IP addresses and want to minimize costs while exposing many services externally. Which approach is best?
Think about IP address usage and cost efficiency.
Using one Ingress controller with multiple Ingress resources allows sharing a single external IP, reducing IP usage and cost while supporting many services.