github.com/datadog/cilium@v1.6.12/examples/kubernetes-istio/bookinfo-ratings-v1-policy.yaml (about) 1 apiVersion: cilium.io/v2 2 kind: CiliumNetworkPolicy 3 metadata: 4 name: ratings-v1 5 namespace: default 6 specs: 7 - endpointSelector: 8 matchLabels: 9 "k8s:app": ratings 10 "k8s:version": v1 11 ingress: 12 - fromEndpoints: 13 - matchLabels: 14 "k8s:app": productpage 15 "k8s:version": v1 16 toPorts: 17 - ports: 18 - port: "9080" 19 protocol: TCP 20 rules: 21 http: 22 - method: GET 23 path: "/ratings/[0-9]*" 24 - fromEndpoints: 25 - matchLabels: 26 "k8s:app": reviews 27 "k8s:version": v2 28 toPorts: 29 - ports: 30 - port: "9080" 31 protocol: TCP 32 rules: 33 http: 34 - method: GET 35 path: "/ratings/[0-9]*"