Network Policy defines how the pods in the same namespace would communicate with each other and the network endpoint.