Which load balancer do you use in your application, and how do you configure it with Kubernetes or a cloud platform?

A load balancer, such as NGINX, distributes incoming traffic across multiple instances of a service, and configuring it with Kubernetes typically means deploying it as an Ingress Controller that routes external traffic into the cluster.

Key Points

Example

An Ingress resource might route example.com/orders to the order-service Kubernetes Service and example.com/users to the user-service Service, and the NGINX Ingress Controller spreads incoming requests for each path across all healthy pods behind that Service.

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: app-ingress
  annotations:
    nginx.ingress.kubernetes.io/rewrite-target: /
spec:
  rules:
    - host: example.com
      http:
        paths:
          - path: /orders
            pathType: Prefix
            backend:
              service:
                name: order-service
                port:
                  number: 80

Interview Tip

A concise interview answer is

I typically use NGINX as the load balancer, deployed as an Ingress Controller in Kubernetes. I define Ingress resources with routing rules mapping hosts and paths to backend Services, and the controller automatically picks those up and distributes traffic to healthy pods, with TLS and rate limiting configured through annotations.

Last updated: 11 November 2026

Previous question: Which service discovery tools have you used in Spring Boot microservices, and what configuration do they need in the application or Kubernetes cluster?

Next question: How do you scale one or more microservices? Is application.yml enough, or must you configure the cloud environment too?

More Microservices - Level II interview questions

All Microservices - Level II questions