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

20 lines
673 B
YAML
Raw Normal View History

# Public Ingress Gateway
{{- $gateway := index .Values "istio-ingress" }}
{{- if and $gateway.enabled $gateway.certificates }}
# https://istio.io/latest/docs/tasks/traffic-management/ingress/secure-ingress/#configure-a-tls-ingress-gateway-for-multiple-hosts
apiVersion: networking.istio.io/v1beta1
2020-07-21 17:30:21 +00:00
kind: Gateway
metadata:
name: ingressgateway
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:
istio: ingressgateway
servers:
{{- include "gatewayServers" (dict "certificates" $gateway.certificates "ports" (index $gateway "gateways" "istio-ingressgateway" "ports") ) | nindent 2}}
{{- end }}