github.com/cilium/cilium@v1.16.2/test/k8s/manifests/cnp-second-namespaces/templates/policy.yaml (about) 1 apiVersion: "cilium.io/v2" 2 kind: CiliumNetworkPolicy 3 metadata: 4 name: "cnp-second-namespace" 5 spec: 6 description: "Policy to stress test L7 proxy" 7 endpointSelector: 8 matchLabels: 9 id: app1 10 ingress: 11 - fromEndpoints: 12 - matchLabels: 13 "k8s:io.kubernetes.pod.namespace": {{ .Values.Namespace }} 14 toPorts: 15 - ports: 16 - port: "80" 17 protocol: TCP 18 rules: 19 http: 20 - method: "GET" 21 path: "/public"