How does a NetworkPolicy in Kubernetes become effective?

Prepare for the Kubernetes Cloud Native Associate (KCNA) Certification test with engaging questions and detailed explanations. Perfect your knowledge and boost your confidence to pass the exam successfully!

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