github.com/form3tech-oss/cilium@v1.6.3/examples/policies/l3/requires/requires.yaml (about)

     1  apiVersion: "cilium.io/v2"
     2  kind: CiliumNetworkPolicy
     3  description: "For endpoints with env=prod, only allow if source also has label env=prod"
     4  metadata:
     5    name: "requires-rule"
     6  specs:
     7    - endpointSelector:
     8        matchLabels:
     9          env: prod
    10      ingress:
    11      - fromRequires:
    12        - matchLabels:
    13            env: prod