service.yaml 654 B

12345678910111213141516171819202122
  1. kind: Service
  2. apiVersion: v1
  3. metadata:
  4. name: {{ template "elasticsearch-exporter.fullname" . }}
  5. labels:
  6. chart: {{ template "elasticsearch-exporter.chart" . }}
  7. k8s-app: {{ template "elasticsearch-exporter.name" . }}
  8. release: "{{ .Release.Name }}"
  9. heritage: "{{ .Release.Service }}"
  10. {{- if .Values.service.annotations }}
  11. annotations:
  12. {{ toYaml .Values.service.annotations | indent 4 }}
  13. {{- end }}
  14. spec:
  15. type: {{ .Values.service.type }}
  16. ports:
  17. - name: http
  18. port: {{ .Values.service.httpPort }}
  19. protocol: TCP
  20. selector:
  21. k8s-app: {{ template "elasticsearch-exporter.name" . }}
  22. release: "{{ .Release.Name }}"