github.com/looshlee/cilium@v1.6.12/examples/policies/l7/http/simple/l7.yaml (about)

     1  apiVersion: "cilium.io/v2"
     2  kind: CiliumNetworkPolicy
     3  description: "Allow HTTP GET /public from env=prod to app=service"
     4  metadata:
     5    name: "rule1"
     6  spec:
     7    endpointSelector:
     8      matchLabels:
     9        app: service
    10    ingress:
    11    - fromEndpoints:
    12      - matchLabels:
    13          env: prod
    14      toPorts:
    15      - ports:
    16        - port: "80"
    17          protocol: TCP
    18        rules:
    19          http:
    20          - method: "GET"
    21            path: "/public"