apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: name: hello-kubernetes-gateway spec: selector: istio: ingressgateway # use istio default controller servers: - port: number: 80 name: http protocol: HTTP hosts: - "*" --- apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata: name: hello-kubernetes-virtual-service spec: hosts: - "*" gateways: - hello-kubernetes-gateway http: - match: - uri: prefix: /hello rewrite: uri: / route: - destination: host: hello-kubernetes-service.default.svc.cluster.local port: number: 80