[
  {
    "apiVersion": "networking.k8s.io/v1",
    "kind": "NetworkPolicy",
    "metadata": {
      "name": "default-deny",
      "namespace": "payments"
    },
    "spec": {
      "podSelector": {},
      "policyTypes": [
        "Ingress",
        "Egress"
      ],
      "ingress": [],
      "egress": []
    }
  },
  {
    "apiVersion": "networking.k8s.io/v1",
    "kind": "NetworkPolicy",
    "metadata": {
      "name": "legacy-api",
      "namespace": "payments"
    },
    "spec": {
      "podSelector": {
        "matchLabels": {
          "app": "api"
        }
      },
      "policyTypes": [
        "Ingress"
      ],
      "ingress": [
        {}
      ]
    }
  }
]
