37 lines
1006 B
YAML
37 lines
1006 B
YAML
|
{{- $isDistributed := eq (include "loki.deployment.isDistributed" .) "true" -}}
|
||
|
{{- if $isDistributed -}}
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: {{ include "loki.querierFullname" . }}
|
||
|
namespace: {{ .Release.Namespace }}
|
||
|
labels:
|
||
|
{{- include "loki.querierLabels" . | nindent 4 }}
|
||
|
{{- with .Values.querier.serviceLabels }}
|
||
|
{{- toYaml . | nindent 4 }}
|
||
|
{{- end }}
|
||
|
annotations:
|
||
|
{{- with .Values.loki.serviceAnnotations }}
|
||
|
{{- toYaml . | nindent 4}}
|
||
|
{{- end }}
|
||
|
{{- with .Values.querier.serviceAnnotations }}
|
||
|
{{- toYaml . | nindent 4}}
|
||
|
{{- end }}
|
||
|
spec:
|
||
|
type: ClusterIP
|
||
|
ports:
|
||
|
- name: http-metrics
|
||
|
port: 3100
|
||
|
targetPort: http-metrics
|
||
|
protocol: TCP
|
||
|
- name: grpc
|
||
|
port: 9095
|
||
|
targetPort: grpc
|
||
|
protocol: TCP
|
||
|
{{- if .Values.querier.appProtocol.grpc }}
|
||
|
appProtocol: {{ .Values.querier.appProtocol.grpc }}
|
||
|
{{- end }}
|
||
|
selector:
|
||
|
{{- include "loki.querierSelectorLabels" . | nindent 4 }}
|
||
|
{{- end -}}
|