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

CKA study material · question 260 of 1000

Which peer selectors may a NetworkPolicy rule use? Choose two.

  1. nodeSelector
  2. ipBlock, with an optional except list
  3. namespaceSelector
  4. serviceSelector
Show the answer

Answer: B. ipBlock, with an optional except list
C. namespaceSelector

A rule's peers are an ipBlock, a namespaceSelector or a podSelector.

Source: Network Policies (Kubernetes) — The NetworkPolicy resource

Challenge yourself on this topic → Study as cards