k8wiz
Kubernetes
Medium
Networking

What is the purpose of a NetworkPolicy in Kubernetes?

Select your answer:

Show answer and explanation

Answer: To specify how groups of pods are allowed to communicate with each other and other network endpoints

Explanation

NetworkPolicies are specifications of how groups of pods are allowed to communicate with each other and with other network endpoints. They provide fine-grained control over the network traffic to and from pods, similar to a firewall for pod traffic.

Read more about Kubernetes