apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: ecom-gps-customers
spec:
  podSelector:
    matchLabels:
      role: ecom-gps-customers
  policyTypes:
    - Ingress
  ingress:
  - ports:
    - protocol: TCP
      port: 8080
  - from:
      - namespaceSelector:
          matchLabels:
            name: ingress