KubeZero/charts/kubezero-istio-gateway/templates/ingress-gateway.yaml

16 lines
613 B
YAML
Raw Normal View History

# https://istio.io/latest/docs/tasks/traffic-management/ingress/secure-ingress/#configure-a-tls-ingress-gateway-for-multiple-hosts
{{- if .Values.certificates }}
apiVersion: networking.istio.io/v1beta1
2020-07-21 17:30:21 +00:00
kind: Gateway
metadata:
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:
{{- include "kubezero-lib.labels" . | nindent 4 }}
2020-07-21 17:30:21 +00:00
spec:
selector:
{{- include "gatewaySelectorLabels" . | nindent 4 }}
2020-07-21 17:30:21 +00:00
servers:
{{- include "gatewayServers" (dict "certificates" .Values.certificates "ports" .Values.gateway.service.ports ) | nindent 2}}
{{- end }}