52 lines
990 B
YAML
52 lines
990 B
YAML
|
apiVersion: networking.istio.io/v1beta1
|
||
|
kind: Gateway
|
||
|
metadata:
|
||
|
name: {{ include "softplayer-web.fullname" . }}
|
||
|
labels:
|
||
|
{{- include "softplayer-web.labels" . | nindent 4 }}
|
||
|
namespace: istio-system
|
||
|
spec:
|
||
|
selector:
|
||
|
istio: ingressgateway
|
||
|
servers:
|
||
|
- hosts:
|
||
|
- '*'
|
||
|
port:
|
||
|
name: grpc-web
|
||
|
number: 8080
|
||
|
protocol: HTTP2
|
||
|
- hosts:
|
||
|
- '*'
|
||
|
port:
|
||
|
name: http
|
||
|
number: 80
|
||
|
protocol: HTTP2
|
||
|
- hosts:
|
||
|
- '*'
|
||
|
port:
|
||
|
name: https
|
||
|
number: 443
|
||
|
protocol: HTTP2
|
||
|
---
|
||
|
apiVersion: networking.istio.io/v1beta1
|
||
|
kind: VirtualService
|
||
|
metadata:
|
||
|
name: {{ include "softplayer-web.fullname" . }}
|
||
|
labels:
|
||
|
{{- include "softplayer-web.labels" . | nindent 4 }}
|
||
|
spec:
|
||
|
gateways:
|
||
|
- istio-system/{{ include "softplayer-web.fullname" . }}
|
||
|
hosts:
|
||
|
- "*"
|
||
|
http:
|
||
|
- match:
|
||
|
- uri:
|
||
|
prefix: /
|
||
|
route:
|
||
|
- destination:
|
||
|
host: {{ include "softplayer-web.fullname" . }}
|
||
|
port:
|
||
|
number: 54321
|
||
|
|