- Home
- All questions
- Question 709
CKA study material · question 709 of 1000
A headless Service is created without a selector. What constraint applies to its ports?
Show the answer
Answer: A. port and targetPort must be equal
For a selectorless headless Service the port and targetPort must match, since there is no proxy layer to translate between the two.
Source: Service (Kubernetes) — Headless Services › Without selectors