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

CKA study material · question 795 of 1000

A NetworkPolicy using endPort is applied, but traffic to the middle of the range is still blocked. What should be verified?

  1. That the Pods declare the ports in their container spec
  2. That the Service exposes each port individually
  3. That the CNI plugin supports the endPort field
  4. That the policy sets protocol to TCP explicitly
Show the answer

Answer: C. That the CNI plugin supports the endPort field

A port range is only honoured when the cluster's CNI plugin implements endPort; a plugin without that support may ignore the range.

Source: Network Policies (Kubernetes) — Targeting a range of ports

Challenge yourself on this topic → Study as cards