github.com/kubearmor/cilium@v1.6.12/examples/minikube/sw_l3_l4_l7_policy.yaml (about)

     1  apiVersion: "cilium.io/v2"
     2  kind: CiliumNetworkPolicy
     3  description: "L7 policy to restrict access to specific HTTP call"
     4  metadata:
     5    name: "rule1"
     6  spec:
     7    endpointSelector:
     8      matchLabels:
     9        org: empire
    10        class: deathstar
    11    ingress:
    12    - fromEndpoints:
    13      - matchLabels:
    14          org: empire
    15      toPorts:
    16      - ports:
    17        - port: "80"
    18          protocol: TCP
    19        rules:
    20          http:
    21          - method: "POST"
    22            path: "/v1/request-landing"