Headless Service とは?
headless service は cluster IP を持たずに定義される service で、その DNS ルックアップは単一の仮想アドレスではなく、背後の pod の IP アドレスを返します。これにより client は 1 つに load balancing されるのではなく、各 pod を発見して直接接続できます。メンバーを個別にアドレス指定する stateful なシステムで一般的です。
なぜ重要か
headless service は、各 replica が安定して直接到達可能なアイデンティティを必要とするデータベースのような stateful な workload を支えます。通常の load balancing された service が隠す pod ごとの発見を提供します。
関連ガイド
What Is a Cluster IP?A cluster IP is a stable virtual address assigned to a service that is reachable only inside the cluster and…
What Is an Endpoint Slice?An endpoint slice is a chunked list of the network endpoints backing a service, scaling endpoint tracking bet…
What Is a DNS Policy?A DNS policy controls how a pod resolves names, choosing whether it uses cluster DNS, the node resolver, or a…