apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: my-gateway
namespace: istio-system
spec:
selector:
istio: ingressgateway # use Istio default ingress gateway
servers:
- port:
number: 80
name: http
protocol: HTTP
hosts:
- "*"
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: my-service
spec:
hosts:
- "*"
gateways:
- my-gateway.istio-system.svc.cluster.local
http:
- match:
- uri:
prefix: /my-service
route:
- destination:
host: my-service.default.svc.cluster.local
port:
number: 8080