12345678910111213141516171819202122232425262728293031323334353637383940 |
- apiVersion: v1
- kind: Service
- metadata:
- name: {{ include "loki.queryFrontendFullname" . }}-headless
- namespace: {{ .Release.Namespace }}
- labels:
- {{- include "loki.queryFrontendLabels" . | nindent 4 }}
- {{- with .Values.queryFrontend.serviceLabels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
- prometheus.io/service-monitor: "false"
- {{- with .Values.loki.serviceAnnotations }}
- annotations:
- {{- toYaml . | nindent 4 }}
- {{- end }}
- spec:
- clusterIP: None
- type: ClusterIP
- publishNotReadyAddresses: true
- ports:
- - name: http
- port: 3100
- targetPort: http
- protocol: TCP
- - name: grpc
- port: 9095
- targetPort: grpc
- protocol: TCP
- {{- if .Values.queryFrontend.appProtocol.grpc }}
- appProtocol: {{ .Values.queryFrontend.appProtocol.grpc }}
- {{- end }}
- - name: grpclb
- port: 9096
- targetPort: grpc
- protocol: TCP
- {{- if .Values.queryFrontend.appProtocol.grpc }}
- appProtocol: {{ .Values.queryFrontend.appProtocol.grpc }}
- {{- end }}
- selector:
- {{- include "loki.queryFrontendSelectorLabels" . | nindent 4 }}
|