service-metrics-generator.yaml 908 B

1234567891011121314151617181920212223242526272829
  1. {{- if .Values.metricsGenerator.enabled }}
  2. {{- $dict := dict "ctx" . "component" "metrics-generator" "memberlist" true }}
  3. apiVersion: v1
  4. kind: Service
  5. metadata:
  6. name: {{ template "tempo.resourceName" $dict }}
  7. namespace: {{ .Release.Namespace }}
  8. labels:
  9. {{- include "tempo.labels" $dict | nindent 4 }}
  10. {{- with .Values.metricsGenerator.service.annotations }}
  11. annotations:
  12. {{- toYaml . | nindent 4 }}
  13. {{- end }}
  14. spec:
  15. ports:
  16. {{- range .Values.metricsGenerator.ports }}
  17. {{- if .service }}
  18. - name: {{ .name | quote }}
  19. port: {{ .port }}
  20. protocol: TCP
  21. targetPort: {{ .port }}
  22. {{- if and (hasPrefix .name "grpc") ($.Values.metricsGenerator.appProtocol.grpc) }}
  23. appProtocol: {{ $.Values.metricsGenerator.appProtocol.grpc }}
  24. {{- end }}
  25. {{- end }}
  26. {{- end }}
  27. selector:
  28. {{- include "tempo.selectorLabels" $dict | nindent 4 }}
  29. {{- end }}