service-distributor-discovery.yaml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. {{- $dict := dict "ctx" . "component" "distributor" }}
  2. apiVersion: v1
  3. kind: Service
  4. metadata:
  5. name: {{ include "tempo.resourceName" $dict }}-discovery
  6. namespace: {{ .Release.Namespace }}
  7. labels:
  8. {{- include "tempo.labels" $dict | nindent 4 }}
  9. {{- with .Values.distributor.serviceDiscovery.labels }}
  10. {{- toYaml . | nindent 4 }}
  11. {{- end }}
  12. prometheus.io/service-monitor: "false"
  13. {{- with .Values.distributor.serviceDiscovery.annotations }}
  14. annotations:
  15. {{- toYaml . | nindent 4 }}
  16. {{- end }}
  17. spec:
  18. type: ClusterIP
  19. clusterIP: None
  20. ports:
  21. - name: http-metrics
  22. port: 3100
  23. targetPort: http-metrics
  24. {{- if .Values.traces.jaeger.thriftCompact.enabled }}
  25. - name: distributor-jaeger-thrift-compact
  26. port: 6831
  27. protocol: UDP
  28. targetPort: jaeger-compact
  29. {{- end }}
  30. {{- if .Values.traces.jaeger.thriftBinary.enabled }}
  31. - name: distributor-jaeger-thrift-binary
  32. port: 6832
  33. protocol: UDP
  34. targetPort: jaeger-binary
  35. {{- end }}
  36. {{- if .Values.traces.jaeger.thriftHttp.enabled }}
  37. - name: distributor-jaeger-thrift-http
  38. port: 14268
  39. protocol: TCP
  40. targetPort: jaeger-http
  41. {{- end }}
  42. {{- if .Values.traces.jaeger.grpc.enabled }}
  43. - name: grpc-distributor-jaeger
  44. port: 14250
  45. protocol: TCP
  46. targetPort: grpc-jaeger
  47. {{- if .Values.distributor.appProtocol.grpc }}
  48. appProtocol: {{ .Values.distributor.appProtocol.grpc }}
  49. {{- end }}
  50. {{- end }}
  51. {{- if .Values.traces.zipkin.enabled }}
  52. - name: distributor-zipkin
  53. port: 9411
  54. protocol: TCP
  55. targetPort: zipkin
  56. {{- end }}
  57. {{- if .Values.traces.otlp.http.enabled }}
  58. - name: distributor-otlp-http
  59. port: 4318
  60. protocol: TCP
  61. targetPort: otlp-http
  62. {{- end }}
  63. {{- if .Values.traces.otlp.grpc.enabled }}
  64. - name: grpc-distributor-otlp
  65. port: 4317
  66. protocol: TCP
  67. targetPort: grpc-otlp
  68. {{- if .Values.distributor.appProtocol.grpc }}
  69. appProtocol: {{ .Values.distributor.appProtocol.grpc }}
  70. {{- end }}
  71. - name: distributor-otlp-legacy
  72. port: 55680
  73. protocol: TCP
  74. targetPort: grpc-otlp
  75. {{- if .Values.distributor.appProtocol.grpc }}
  76. appProtocol: {{ .Values.distributor.appProtocol.grpc }}
  77. {{- end }}
  78. {{- end }}
  79. {{- if .Values.traces.opencensus.enabled }}
  80. - name: distributor-opencensus
  81. port: 55678
  82. protocol: TCP
  83. targetPort: opencensus
  84. {{- end }}
  85. selector:
  86. {{- include "tempo.selectorLabels" $dict | nindent 4 }}