Study. uk . com
  1. Home
  2. All questions
  3. Question 707

CKA study material · question 707 of 1000

How is a headless Service declared?

  1. By omitting the clusterIP field entirely
  2. By setting type to Headless
  3. By omitting the selector
  4. By setting clusterIP to the literal string None
Show the answer

Answer: D. By setting clusterIP to the literal string None

None is a special value distinct from leaving clusterIP unset, which would simply have one allocated. The type stays ClusterIP.

Source: Service (Kubernetes) — Headless Services

Challenge yourself on this topic → Study as cards