service-querier.yaml 772 B

123456789101112131415161718192021222324252627282930
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: {{ include "loki.querierFullname" . }}
  5. namespace: {{ .Release.Namespace }}
  6. labels:
  7. {{- include "loki.querierLabels" . | nindent 4 }}
  8. {{- with .Values.querier.serviceLabels }}
  9. {{- toYaml . | nindent 4 }}
  10. {{- end }}
  11. {{- with .Values.loki.serviceAnnotations }}
  12. annotations:
  13. {{- toYaml . | nindent 4 }}
  14. {{- end }}
  15. spec:
  16. type: ClusterIP
  17. ports:
  18. - name: http
  19. port: 3100
  20. targetPort: http
  21. protocol: TCP
  22. - name: grpc
  23. port: 9095
  24. targetPort: grpc
  25. protocol: TCP
  26. {{- if .Values.querier.appProtocol.grpc }}
  27. appProtocol: {{ .Values.querier.appProtocol.grpc }}
  28. {{- end }}
  29. selector:
  30. {{- include "loki.querierSelectorLabels" . | nindent 4 }}