istio.io/istio@v0.0.0-20240520182934-d79c90f27776/manifests/charts/gateways/istio-ingress/templates/service.yaml (about) 1 {{ $gateway := index .Values "gateways" "istio-ingressgateway" }} 2 {{- if not $gateway.customService }} 3 apiVersion: v1 4 kind: Service 5 metadata: 6 name: {{ $gateway.name }} 7 namespace: {{ .Release.Namespace }} 8 annotations: 9 {{- range $key, $val := $gateway.serviceAnnotations }} 10 {{ $key }}: {{ $val | quote }} 11 {{- end }} 12 labels: 13 {{ $gateway.labels | toYaml | indent 4 }} 14 release: {{ .Release.Name }} 15 istio.io/rev: {{ .Values.revision | default "default" | quote }} 16 install.operator.istio.io/owning-resource: {{ .Values.ownerName | default "unknown" }} 17 operator.istio.io/component: "IngressGateways" 18 spec: 19 {{- if $gateway.loadBalancerIP }} 20 loadBalancerIP: "{{ $gateway.loadBalancerIP }}" 21 {{- end }} 22 {{- if $gateway.loadBalancerSourceRanges }} 23 loadBalancerSourceRanges: 24 {{ toYaml $gateway.loadBalancerSourceRanges | indent 4 }} 25 {{- end }} 26 {{- if $gateway.externalTrafficPolicy }} 27 externalTrafficPolicy: {{$gateway.externalTrafficPolicy }} 28 {{- end }} 29 type: {{ $gateway.type }} 30 selector: 31 {{ $gateway.labels | toYaml | indent 4 }} 32 ports: 33 34 {{- range $key, $val := $gateway.ports }} 35 - 36 {{- range $pkey, $pval := $val }} 37 {{ $pkey}}: {{ $pval }} 38 {{- end }} 39 {{- end }} 40 41 {{ range $app := $gateway.ingressPorts }} 42 - 43 port: {{ $app.port }} 44 name: {{ $app.name }} 45 {{- end }} 46 {{- if $gateway.ipFamilyPolicy }} 47 ipFamilyPolicy: {{ $gateway.ipFamilyPolicy }} 48 {{- end }} 49 {{- if $gateway.ipFamilies }} 50 ipFamilies: 51 {{- range $gateway.ipFamilies }} 52 - {{ . }} 53 {{- end }} 54 {{- end }} 55 --- 56 {{ end }}