Kubernetes network policy is a set of rules that define how Kubernetes services and endpoints can communicate with each other.