agent-svc.yaml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {{- if .Values.agent.enabled -}}
  2. apiVersion: v1
  3. kind: Service
  4. metadata:
  5. name: {{ template "jaeger.agent.name" . }}
  6. labels:
  7. {{- include "jaeger.labels" . | nindent 4 }}
  8. app.kubernetes.io/component: agent
  9. {{- if .Values.agent.service.annotations }}
  10. annotations:
  11. {{- toYaml .Values.agent.service.annotations | nindent 4 }}
  12. {{- end }}
  13. spec:
  14. ports:
  15. - name: zipkin-compact
  16. port: {{ .Values.agent.service.zipkinThriftPort }}
  17. protocol: UDP
  18. targetPort: zipkin-compact
  19. - name: jaeger-compact
  20. port: {{ .Values.agent.service.compactPort }}
  21. protocol: UDP
  22. targetPort: jaeger-compact
  23. - name: jaeger-binary
  24. port: {{ .Values.agent.service.binaryPort }}
  25. protocol: UDP
  26. targetPort: jaeger-binary
  27. - name: http
  28. port: {{ .Values.agent.service.samplingPort }}
  29. protocol: TCP
  30. targetPort: http
  31. - name: admin
  32. port: 14271
  33. protocol: TCP
  34. targetPort: admin
  35. type: {{ .Values.agent.service.type }}
  36. selector:
  37. {{- include "jaeger.selectorLabels" . | nindent 4 }}
  38. app.kubernetes.io/component: agent
  39. {{- template "loadBalancerSourceRanges" .Values.agent }}
  40. {{- end -}}