Files
robot-shop/K8s/Istio/gateway.yaml
Steve Waterworth 2cfdb6e701 Istio tweaks
2019-07-09 17:09:53 +01:00

33 lines
554 B
YAML

---
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: robotshop-gateway
spec:
selector:
istio: ingressgateway # default Istio controller
servers:
- port:
number: 80
name: http
protocol: HTTP
hosts:
- "*"
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: robotshop
spec:
hosts:
- "*"
gateways:
- robotshop-gateway
http:
# default route
- route:
- destination:
host: web.robot-shop.svc.cluster.local
port:
number: 8080