tezvyn:

Headless Services and direct Pod DNS

Source: interviewintermediate

WHAT IT TESTS: Understanding headless Services. OUTLINE: Set clusterIP: None so no virtual IP or proxy load balancing; DNS returns individual Pod IPs (A records). Primary use: StatefulSets needing stable per-Pod addressing.

WHAT IT TESTS: Whether you grasp direct Pod discovery without proxying. ANSWER OUTLINE: A headless Service is created with clusterIP: None, so Kubernetes allocates no virtual IP and kube-proxy does no load balancing. Instead, a DNS lookup of the Service returns the A records of all the backing Pods directly, letting the client choose or discover individual Pods. The primary use case is StatefulSets, where each Pod needs a stable network identity, as with database clusters or peer-to-peer systems.

Read the original → interview

Get five bites like this every day.

Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.

Headless Services and direct Pod DNS · Tezvyn