--- apiVersion: v1 kind: Service metadata: name: {{ include "kiali-server.fullname" . }} namespace: {{ .Release.Namespace }} labels: {{- include "kiali-server.labels" . | nindent 4 }} annotations: {{- if .Capabilities.APIVersions.Has "route.openshift.io/v1" }} service.beta.openshift.io/serving-cert-secret-name: {{ include "kiali-server.fullname" . }}-cert-secret {{- end }} kiali.io/api-spec: https://kiali.io/api kiali.io/api-type: rest {{- if .Values.deployment.service_annotations }} {{- toYaml .Values.deployment.service_annotations | nindent 4 }} {{- end }} spec: {{- if .Values.deployment.service_type }} type: {{ .Values.deployment.service_type }} {{- end }} ports: {{- if (include "kiali-server.identity.cert_file" .) }} - name: tcp {{- else }} - name: http {{- end }} protocol: TCP port: {{ .Values.server.port }} {{- if .Values.server.metrics_enabled }} - name: http-metrics protocol: TCP port: {{ .Values.server.metrics_port }} {{- end }} selector: {{- include "kiali-server.selectorLabels" . | nindent 4 }} {{- if .Values.deployment.additional_service_yaml }} {{- toYaml .Values.deployment.additional_service_yaml | nindent 2 }} {{- end }} ...