k8s-manifests/rds/base/charts/jaeger/templates/query-svc.yaml

33 lines
944 B
YAML

{{- if .Values.query.enabled -}}
apiVersion: v1
kind: Service
metadata:
name: {{ template "jaeger.query.name" . }}
namespace: {{ .Release.Namespace }}
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: query
{{- if and (eq .Values.query.service.type "NodePort") (.Values.query.service.nodePort) }}
nodePort: {{ .Values.query.service.nodePort }}
{{- end }}
- name: admin
port: 16687
protocol: TCP
targetPort: admin
selector:
{{- include "jaeger.selectorLabels" . | nindent 4 }}
app.kubernetes.io/component: query
type: {{ .Values.query.service.type }}
{{- template "loadBalancerSourceRanges" .Values.query }}
{{- end -}}