ETExamTower
Q14Kubernetes Fundamentals

What role does a NetworkPolicy serve in Kubernetes?

← → navigate · a answer
Community votes
B
100% (5)
A
0% (0)
C
0% (0)
D
0% (0)
Discussion · 4
B 2
B https://kubernetes.io/docs/concepts/services-networking/network-policies/#the-two-sorts-of-pod-isolation:~:text=There%20are%20two,pod%20to%20another.
B 2
B corret. https://kubernetes.io/docs/concepts/services-networking/network-policies/#the-two-sorts-of-pod-isolation
B 1
A NetworkPolicy in Kubernetes is a resource that defines rules for controlling the network traffic to and from Pods. NetworkPolicies allow you to specify how groups of Pods are allowed to communicate with each other and with other network endpoints. By default, Pods are non-isolated, meaning they accept traffic from any source. When a NetworkPolicy is applied, it can classify Pods as isolated, meaning they only accept traffic that matches the specified rules.
B 1
B. The ability to classify the Pods as isolated and non isolated. In Kubernetes, a NetworkPolicy is used to control the communication between Pods within the cluster. It allows you to specify rules for which Pods can communicate with each other, effectively classifying Pods as isolated or non-isolated based on the defined rules