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

     1  apiVersion: "cilium.io/v2"
     2  kind: CiliumNetworkPolicy
     3  metadata:
     4    name: "service-rule"
     5  spec:
     6    endpointSelector:
     7      matchLabels:
     8        id: app2
     9    egress:
    10    - toServices:
    11      - k8sService:
    12          serviceName: myservice
    13          namespace: default