github.com/form3tech-oss/cilium@v1.6.3/examples/policies/getting-started/cilium_dkr_demo_l7-policy-230817.yaml (about)

     1  apiVersion: "cilium.io/v2"
     2  kind: CiliumNetworkPolicy
     3  metadata:
     4    name: "l7-rule"
     5  spec:
     6    endpointSelector:
     7      matchLabels:
     8        id: app1
     9    ingress:
    10    - fromEndpoints:
    11      - matchLabels:
    12          id: app2
    13      toPorts:
    14      - ports:
    15        - port: '80'
    16          protocol: TCP
    17        rules:
    18          http:
    19          - method: GET
    20            path: "/public"