github.com/fafucoder/cilium@v1.6.11/examples/policies/l7/http/l7_multi.yaml (about) 1 apiVersion: "cilium.io/v2" 2 kind: CiliumNetworkPolicy 3 metadata: 4 name: "fancyrule" 5 specs: 6 - endpointSelector: 7 matchLabels: 8 app: service 9 ingress: 10 - fromEndpoints: 11 - matchLabels: 12 env: prod 13 toPorts: 14 - ports: 15 - port: "80" 16 protocol: TCP 17 rules: 18 http: 19 - method: "GET" 20 path: "/public" 21 - endpointSelector: 22 matchLabels: 23 env: prod 24 egress: 25 - toPorts: 26 - ports: 27 - port: "80" 28 protocol: TCP 29 rules: 30 http: 31 - method: "POST" 32 host: "^external-service.org$"