query-svc.yaml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. {{- if .Values.query.enabled -}}
  2. apiVersion: v1
  3. kind: Service
  4. metadata:
  5. name: {{ template "jaeger.query.name" . }}
  6. labels:
  7. {{- include "jaeger.labels" . | nindent 4 }}
  8. app.kubernetes.io/component: query
  9. {{- if .Values.query.service.annotations }}
  10. annotations:
  11. {{- toYaml .Values.query.service.annotations | nindent 4 }}
  12. {{- end }}
  13. spec:
  14. ports:
  15. - name: query
  16. port: {{ .Values.query.service.port }}
  17. protocol: TCP
  18. targetPort: {{ default (ternary "oauth-proxy" "query" .Values.query.oAuthSidecar.enabled) .Values.query.service.targetPort }}
  19. {{- if and (eq .Values.query.service.type "NodePort") (.Values.query.service.nodePort) }}
  20. nodePort: {{ .Values.query.service.nodePort }}
  21. {{- end }}
  22. - name: grpc
  23. port: 16685
  24. protocol: TCP
  25. targetPort: grpc
  26. - name: admin
  27. port: 16687
  28. protocol: TCP
  29. targetPort: admin
  30. selector:
  31. {{- include "jaeger.selectorLabels" . | nindent 4 }}
  32. app.kubernetes.io/component: query
  33. type: {{ .Values.query.service.type }}
  34. {{- template "loadBalancerSourceRanges" .Values.query }}
  35. {{- end -}}