Mohammed Naser | 65cda13 | 2024-05-02 14:34:08 -0400 | [diff] [blame] | 1 | {{- if .Values.enterprise.enabled }} |
| 2 | apiVersion: v1 |
| 3 | kind: Service |
| 4 | metadata: |
| 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 }} |
| 15 | spec: |
| 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 }} |