31 lines
527 B
YAML
31 lines
527 B
YAML
|
apiVersion: networking.istio.io/v1alpha3
|
||
|
kind: Gateway
|
||
|
metadata:
|
||
|
name: frontend-gateway
|
||
|
spec:
|
||
|
selector:
|
||
|
istio: ingressgateway # use Istio default gateway implementation
|
||
|
servers:
|
||
|
- port:
|
||
|
number: 80
|
||
|
name: http
|
||
|
protocol: HTTP
|
||
|
hosts:
|
||
|
- "*"
|
||
|
---
|
||
|
apiVersion: networking.istio.io/v1alpha3
|
||
|
kind: VirtualService
|
||
|
metadata:
|
||
|
name: frontend-ingress
|
||
|
spec:
|
||
|
hosts:
|
||
|
- "*"
|
||
|
gateways:
|
||
|
- frontend-gateway
|
||
|
http:
|
||
|
- route:
|
||
|
- destination:
|
||
|
host: frontend
|
||
|
port:
|
||
|
number: 80
|