2021-03-24 12:08:17 +00:00
|
|
|
# https://istio.io/latest/docs/tasks/traffic-management/ingress/secure-ingress/#configure-a-tls-ingress-gateway-for-multiple-hosts
|
2022-04-21 11:57:34 +00:00
|
|
|
{{- if .Values.certificates }}
|
2020-11-21 12:24:57 +00:00
|
|
|
apiVersion: networking.istio.io/v1beta1
|
2020-07-21 17:30:21 +00:00
|
|
|
kind: Gateway
|
|
|
|
metadata:
|
2022-04-21 11:57:34 +00:00
|
|
|
name: {{ include "gatewayName" . | trimPrefix "istio-" }}
|
2020-11-24 14:44:57 +00:00
|
|
|
namespace: {{ .Release.Namespace }}
|
2020-08-06 17:43:59 +00:00
|
|
|
labels:
|
2021-08-25 13:58:55 +00:00
|
|
|
{{- include "kubezero-lib.labels" . | nindent 4 }}
|
2020-07-21 17:30:21 +00:00
|
|
|
spec:
|
|
|
|
selector:
|
2022-04-21 11:57:34 +00:00
|
|
|
{{- include "gatewaySelectorLabels" . | nindent 4 }}
|
2020-07-21 17:30:21 +00:00
|
|
|
servers:
|
2022-04-21 21:14:06 +00:00
|
|
|
{{- include "gatewayServers" (dict "certificates" .Values.certificates "ports" .Values.gateway.service.ports ) | nindent 2 }}
|
2020-08-21 13:17:47 +00:00
|
|
|
{{- end }}
|