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

CKA study material · question 718 of 1000

A Service declares two ports and the API server rejects it. Which requirement was most likely missed?

  1. Both ports must use the same protocol
  2. Each port must be given a name
  3. Both ports must share one targetPort
  4. Multi-port Services must be of type NodePort
Show the answer

Answer: B. Each port must be given a name

When a Service exposes more than one port every port definition must be named so that consumers can tell them apart unambiguously.

Source: Service (Kubernetes) — Defining a Service › Multi-port Services

Challenge yourself on this topic → Study as cards