softplayer-helmfile/charts/network-base/templates/gateway.yaml

40 lines
870 B
YAML
Raw Normal View History

2024-05-08 15:38:52 +00:00
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