github.com/looshlee/beatles@v0.0.0-20220727174639-742810ab631c/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