How does a NetworkPolicy in Kubernetes become effective?

Prepare for the KCNA Certification Test. Study with flashcards, multiple-choice questions, and detailed explanations to enhance your understanding of Kubernetes Cloud Native concepts. Ace your exam!

Multiple Choice

How does a NetworkPolicy in Kubernetes become effective?

Explanation:
NetworkPolicy becomes effective as soon as you apply its manifest. When you apply the policy, the API server stores it and a compatible network plugin (the CNI) watches for changes and updates its enforcement rules immediately. There’s no restart, no quota update, and no manual approval required. Remember that the policy will only be enforced if the cluster’s CNI supports NetworkPolicy; otherwise, the policy is ignored.

NetworkPolicy becomes effective as soon as you apply its manifest. When you apply the policy, the API server stores it and a compatible network plugin (the CNI) watches for changes and updates its enforcement rules immediately. There’s no restart, no quota update, and no manual approval required. Remember that the policy will only be enforced if the cluster’s CNI supports NetworkPolicy; otherwise, the policy is ignored.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy