All jobs / DevOps / SRE / cloud / Kubernetes
DevOps / SRE / cloud interview question · 1–3 years
You have five HTTP services. One Service of type LoadBalancer each, or an Ingress?
The strongest answer
An Ingress (or Gateway API) behind one controller: one cloud load balancer, routing by host and path, TLS terminated in one place — a LoadBalancer Service each is five bills and five certificates
Why it works
Exactly — Ingress is the layer-7 front door; the controller does the routing, and you pay for one L4 load balancer.
What a good answer covers
- Ingress for HTTP routing.
- One LB, many hosts and paths.
- Terminate TLS in one place.
- LoadBalancer Service only where L4 is needed.
Answers that fall short
- Close, but not the strongest: A LoadBalancer Service per app; it is simpler and each team owns its own
It works at five, but it is a load balancer per service and no shared TLS, WAF or routing policy. - Weak: NodePort Services and tell clients which port each service uses
NodePorts leak infrastructure detail to clients and still need something in front for TLS and a stable address. - Red flag: Expose the pods with `hostNetwork` so they are reachable on the node IPs
hostNetwork bypasses the Service model entirely and couples pods to node addresses.
Who gets asked this
More Kubernetes questions
- What does Helm give you over applying raw YAML, and what does `helm rollback` not do?
- The pods are Running, but calls to the Service get connection refused. Walk me through the diagnosis.
- The cluster is two versions behind. How do you catch up?
- Pods cannot reach an external API that works from your laptop. What do you check in the cluster?
- HPA keeps adding pods; memory still climbs per pod. What is going on?
- A cluster has no NetworkPolicies. What do you install without boiling the ocean?
- You run one precious cluster that cannot be rebuilt. What is the programme?
- Thirty teams share a few clusters. Requests for cluster-admin “just to deploy” arrive weekly. How do you hand…