31 lines
1.1 KiB
YAML
31 lines
1.1 KiB
YAML
{{- if .Values.enterprise.enabled -}}
|
|
{{ $dict := dict "ctx" . "component" "enterprise-gateway" }}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "tempo.resourceName" $dict }}
|
|
labels:
|
|
{{- include "tempo.labels" $dict | nindent 4 }}
|
|
{{- with .Values.enterpriseGateway.service.labels }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
annotations:
|
|
{{- toYaml .Values.enterpriseGateway.service.annotations | nindent 4 }}
|
|
namespace: {{ .Release.Namespace | quote }}
|
|
spec:
|
|
type: {{ .Values.enterpriseGateway.service.type }}
|
|
{{- with .Values.enterpriseGateway.service.clusterIP }}
|
|
clusterIP: {{ . }}
|
|
{{- end }}
|
|
{{- if and (eq "LoadBalancer" .Values.enterpriseGateway.service.type) .Values.enterpriseGateway.service.loadBalancerIP }}
|
|
loadBalancerIP: {{ .Values.enterpriseGateway.service.loadBalancerIP }}
|
|
{{- end }}
|
|
ports:
|
|
- port: {{ .Values.enterpriseGateway.service.port | default (include "tempo.serverHttpListenPort" . ) }}
|
|
protocol: TCP
|
|
name: http-metrics
|
|
targetPort: http-metrics
|
|
selector:
|
|
{{- include "tempo.selectorLabels" $dict | nindent 4 }}
|
|
{{- end -}}
|