istio.io/istio@v0.0.0-20240520182934-d79c90f27776/pilot/pkg/xds/testdata/benchmarks/authorizationpolicy.yaml (about) 1 # Set up a Service associated with our proxy, which will run as 1.1.1.1 IP 2 apiVersion: networking.istio.io/v1alpha3 3 kind: ServiceEntry 4 metadata: 5 name: proxy-service-instance 6 spec: 7 hosts: 8 - example.com 9 ports: 10 - number: 80 11 name: http 12 protocol: HTTP 13 - number: 443 14 name: https 15 protocol: HTTPS 16 resolution: STATIC 17 endpoints: 18 - address: 1.1.1.1 19 labels: 20 istio.io/benchmark: "true" 21 --- 22 {{- range $i := until .Services }} 23 apiVersion: security.istio.io/v1 24 kind: AuthorizationPolicy 25 metadata: 26 name: authn-{{$i}} 27 spec: 28 action: DENY 29 rules: 30 - from: 31 - source: 32 namespaces: ["default"] 33 to: 34 - operation: 35 methods: ["POST"] 36 --- 37 {{- end }}