Skip to main content
InterviewHubPRO
Section Overview
Q41

Question 41 of 50

Part 3: Advanced Internals, Scale & Production Security (Senior / Lead)

82%
Kubernetes (K8s) (50 Qs)•Part 3: Advanced Internals, Scale & Production Security (Senior / Lead)

Kubernetes Service Types: ClusterIP vs NodePort vs LoadBalancer vs Ingress.

senior LevelMost AskedSecurity & AuthKubernetes

In Simple Words:

  • ClusterIP (Default): Exposes service on an internal cluster IP address. Reachable only within the cluster.
  • NodePort: Opens a static high-range port ($30000-32767$) on every worker node. External traffic hitting any node's IP at that port is forwarded to the service.
  • LoadBalancer: Provisions a real cloud load balancer (AWS NLB/ALB, GCP LB, Azure LB) with a public IP that routes directly to NodePort/ClusterIP.
  • Ingress Controller (Layer 7 Routing): A single external load balancer that inspects HTTP headers and host paths (/api vs /auth), routing traffic to different backend ClusterIP services.