- Home
- All questions
- Question 202
CKA study material · question 202 of 1000
Why would an administrator use a named targetPort instead of a number?
Show the answer
Answer: D. Different Pods can expose the same name on different port numbers
A named targetPort lets one Service serve Pods that expose the same logical port on different numbers.
Source: Service (Kubernetes) — Port definitions