blob: c7daa2790a1209e570664d11ffd68953370cac21 [file] [log] [blame]
Mohammed Naser65cda132024-05-02 14:34:08 -04001{{- if .Values.enterprise.enabled }}
2apiVersion: v1
3kind: Service
4metadata:
5 name: {{ template "enterprise-logs.adminApiFullname" . }}
6 labels:
7 {{- include "enterprise-logs.adminApiLabels" . | nindent 4 }}
8 {{- with .Values.adminApi.service.labels }}
9 {{- toYaml . | nindent 4 }}
10 {{- end }}
11 annotations:
12 {{- with .Values.adminApi.service.annotations }}
13 {{- toYaml . | nindent 4 }}
14 {{- end }}
15spec:
16 type: ClusterIP
17 ports:
18 - name: http-metrics
19 port: 3100
20 protocol: TCP
21 targetPort: http-metrics
22 - name: grpc
23 port: 9095
24 protocol: TCP
25 targetPort: grpc
26 selector:
27 {{- include "enterprise-logs.adminApiSelectorLabels" . | nindent 4 }}
28{{- end }}