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.
More medium Kubernetes questions
- What is a Kubernetes StatefulSet used for?
- Which component stores the state of the Kubernetes cluster?
- What is the purpose of a Kubernetes Job?
- What is a Kubernetes CronJob?
- What is the purpose of a Kubernetes HorizontalPodAutoscaler?
- What is the difference between a liveness probe and a readiness probe?