How does a NetworkPolicy in Kubernetes become effective?

Study for the Kubernetes Cloud Native Associate (KCNA) Certification. Prepare with flashcards and multiple choice questions. Ensure success with detailed explanations. Ready for 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