apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
 name: test-network-policy
 namespace: policy-tester
spec:
 podSelector:
  matchLabels:
    app: network-policy-echoserver
 ingress:
  - from:
     - podSelector:
        matchLabels:
         app: network-policy-tester
    ports:
     - protocol: TCP
       port: 80
