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

CKA study material · question 794 of 1000

A NetworkPolicy rule sets endPort: 32768 but omits port. Why is that invalid?

  1. endPort may only be used on ingress rules
  2. endPort must be accompanied by port and be at least as large
  3. endPort may not exceed 32767
  4. endPort requires a named port rather than a number
Show the answer

Answer: B. endPort must be accompanied by port and be at least as large

endPort defines the upper bound of a range, so port must also be set, both values must be numeric, and endPort must be equal to or greater than port.

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

Challenge yourself on this topic → Study as cards