github.com/fafucoder/cilium@v1.6.11/examples/policies/l7/http/http.yaml (about)

     1  apiVersion: "cilium.io/v2"
     2  kind: CiliumNetworkPolicy
     3  metadata:
     4    name: "l7-rule"
     5  spec:
     6    endpointSelector:
     7      matchLabels:
     8        app: myService
     9    ingress:
    10    - toPorts:
    11      - ports:
    12        - port: '80'
    13          protocol: TCP
    14        rules:
    15          http:
    16          - method: GET
    17            path: "/path1$"
    18          - method: PUT
    19            path: "/path2$"
    20            headers:
    21            - 'X-My-Header: true'