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