istio.io/istio@v0.0.0-20240520182934-d79c90f27776/tests/testdata/config/gateway-all.yaml (about) 1 apiVersion: networking.istio.io/v1alpha3 2 kind: Gateway 3 metadata: 4 name: my-gateway 5 namespace: testns 6 spec: 7 selector: 8 app: my-gateway-controller 9 servers: 10 - port: 11 number: 80 12 name: http 13 protocol: HTTP 14 hosts: 15 - uk.bookinfo.com 16 - eu.bookinfo.com 17 - c.foo 18 tls: 19 httpsRedirect: true # sends 302 redirect for http requests 20 - port: 21 number: 443 22 name: https 23 protocol: HTTPS 24 hosts: 25 - uk.bookinfo.com 26 - eu.bookinfo.com 27 tls: 28 mode: SIMPLE #enables HTTPS on this port 29 serverCertificate: /etc/certs/servercert.pem 30 privateKey: /etc/certs/privatekey.pem 31 # - port: 32 # number: 9080 33 # name: http-wildcard 34 # no hosts implies wildcard match