- Home
- All questions
- Question 703
CKA study material · question 703 of 1000
A Service declares port: 80 and no targetPort. Which container port does traffic reach?
Show the answer
Answer: B. 80
targetPort defaults to the same value as port. It may also name a container's named port rather than a number, which lets the container change its port without editing the Service.
Source: Service (Kubernetes) — Defining a Service › Port definitions