40 lines
870 B
YAML
40 lines
870 B
YAML
|
apiVersion: networking.istio.io/v1beta1
|
||
|
kind: Gateway
|
||
|
metadata:
|
||
|
name: {{ include "network-base.fullname" . }}
|
||
|
labels:
|
||
|
{{- include "network-base.labels" $ | nindent 4 }}
|
||
|
spec:
|
||
|
selector:
|
||
|
istio: ingressgateway
|
||
|
servers:
|
||
|
- hosts:
|
||
|
- {{ .Values.domain }}
|
||
|
- "*.{{ .Values.domain }}"
|
||
|
port:
|
||
|
name: grpc-web
|
||
|
number: 8080
|
||
|
protocol: HTTPS
|
||
|
tls:
|
||
|
credentialName: {{ include "network-base.fullname" . }}-cert
|
||
|
mode: SIMPLE
|
||
|
- hosts:
|
||
|
- {{ .Values.domain }}
|
||
|
- "*.{{ .Values.domain }}"
|
||
|
port:
|
||
|
name: http
|
||
|
number: 80
|
||
|
protocol: HTTP2
|
||
|
tls:
|
||
|
httpsRedirect: true
|
||
|
- hosts:
|
||
|
- {{ .Values.domain }}
|
||
|
- "*.{{ .Values.domain }}"
|
||
|
port:
|
||
|
name: https
|
||
|
number: 443
|
||
|
protocol: HTTPS
|
||
|
tls:
|
||
|
credentialName: {{ include "network-base.fullname" . }}-cert
|
||
|
mode: SIMPLE
|