apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: name: devops-demo-gateway spec: # The selector matches the ingress gateway pod labels. # If you installed Istio using Helm following the standard documentation, this would be "istio=ingress" selector: istio: ingressgateway # use istio default controller servers: - port: number: 80 name: http protocol: HTTP hosts: - "api.ginta.com" - port: #bind Https port(443) #this port is same as port of ports.name=https istio-system.service.istio-ingressgateway number: 443 name: https protocol: HTTPS #tls conf tls: #simple mode (Only the client needs to verify the server Https certificate, not MUTUAL) mode: SIMPLE #Mount the server certificate (corresponding to the previously defined secret tls isto ingressgateway certificates -- cert) serverCertificate: /etc/istio/ingressgateway-certs/tls.crt #Mount the private key of the server (corresponding to the previously defined secret tls isto ingressgateway certs -- key) privateKey: /etc/istio/ingressgateway-certs/tls.key hosts: #hosts - "api.ginta.com"