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

CKA study material · question 201 of 1000

A Service manifest sets port 80 but omits targetPort. Which port on the Pod receives traffic?

  1. Port 80
  2. A randomly allocated port
  3. Port 8080
  4. The Pod's first declared containerPort
Show the answer

Answer: A. Port 80

targetPort defaults to the same value as port when it is not given.

Source: Service (Kubernetes) — Defining a Service

Challenge yourself on this topic → Study as cards