istio.io/istio@v0.0.0-20240520182934-d79c90f27776/tests/integration/security/testdata/requestauthn/gateway-api.yaml.tmpl (about) 1 apiVersion: gateway.networking.k8s.io/v1beta1 2 kind: Gateway 3 metadata: 4 name: {{ .To.ServiceName }}-gateway 5 spec: 6 gatewayClassName: istio 7 listeners: 8 - name: http 9 port: 80 10 protocol: HTTP 11 hostname: "*.{{ .To.ServiceName }}.com" 12 --- 13 apiVersion: gateway.networking.k8s.io/v1beta1 14 kind: HTTPRoute 15 metadata: 16 name: {{ .To.ServiceName }} 17 spec: 18 parentRefs: 19 - name: {{ .To.ServiceName }}-gateway 20 hostnames: 21 - "*.{{ .To.ServiceName }}.com" 22 rules: 23 - backendRefs: 24 - name: "{{ .To.ServiceName }}" 25 port: {{ (.To.PortForName `http`).ServicePort }}