apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: name: wordpress-gateway spec: selector: istio: ingressgateway servers: - port: number: 443 name: https protocol: HTTPS tls: mode: SIMPLE serverCertificate: /etc/istio/ingressgateway-certs/tls.crt privateKey: /etc/istio/ingressgateway-certs/tls.key hosts: - "blog.datadoc.info" --- apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata: name: wordpress spec: hosts: - "blog.datadoc.info" gateways: - wordpress-gateway http: - route: - destination: subset: v1 host: wordpress weight: 90 - destination: subset: v2 host: wordpress weight: 10 --- apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata: name: wordpress spec: trafficPolicy: tls: mode: ISTIO_MUTUAL host: wordpress subsets: - name: v1 labels: version: v1 - name: v2 labels: version: v2