service-querier-headless.yaml 705 B

123456789101112131415161718192021222324252627
  1. {{- if not .Values.indexGateway.enabled }}
  2. apiVersion: v1
  3. kind: Service
  4. metadata:
  5. name: {{ include "loki.querierFullname" . }}-headless
  6. namespace: {{ .Release.Namespace }}
  7. labels:
  8. {{- include "loki.querierSelectorLabels" . | nindent 4 }}
  9. prometheus.io/service-monitor: "false"
  10. spec:
  11. type: ClusterIP
  12. clusterIP: None
  13. ports:
  14. - name: http
  15. port: 3100
  16. targetPort: http
  17. protocol: TCP
  18. - name: grpc
  19. port: 9095
  20. targetPort: grpc
  21. protocol: TCP
  22. {{- if .Values.querier.appProtocol.grpc }}
  23. appProtocol: {{ .Values.querier.appProtocol.grpc }}
  24. {{- end }}
  25. selector:
  26. {{- include "loki.querierSelectorLabels" . | nindent 4 }}
  27. {{- end }}