github.com/fafucoder/cilium@v1.6.11/examples/policies/l3/service/service.json (about)

     1  [{
     2        "labels": [{"key": "name", "value": "service-rule"}],
     3        "endpointSelector": {
     4          "matchLabels": {
     5            "id": "app2"
     6          }
     7        },
     8        "egress": [
     9          {
    10            "toServices": [
    11              {
    12                "k8sService": {
    13                  "serviceName": "myservice",
    14                  "namespace": "default"
    15                }
    16              }
    17            ]
    18          }
    19        ]
    20  }]