github.com/fafucoder/cilium@v1.6.11/examples/policies/l3/cidr/cidr.yaml (about) 1 apiVersion: "cilium.io/v2" 2 kind: CiliumNetworkPolicy 3 metadata: 4 name: "cidr-rule" 5 spec: 6 endpointSelector: 7 matchLabels: 8 app: myService 9 egress: 10 - toCIDR: 11 - 20.1.1.1/32 12 - toCIDRSet: 13 - cidr: 10.0.0.0/8 14 except: 15 - 10.96.0.0/12