service-query-scheduler.yaml 781 B

12345678910111213141516171819202122232425262728293031
  1. {{- if .Values.queryScheduler.enabled }}
  2. apiVersion: v1
  3. kind: Service
  4. metadata:
  5. name: {{ include "loki.querySchedulerFullname" . }}
  6. namespace: {{ .Release.Namespace }}
  7. labels:
  8. {{- include "loki.querySchedulerLabels" . | nindent 4 }}
  9. {{- with .Values.queryScheduler.serviceLabels }}
  10. {{- toYaml . | nindent 4 }}
  11. {{- end }}
  12. {{- with .Values.loki.serviceAnnotations }}
  13. annotations:
  14. {{- toYaml . | nindent 4 }}
  15. {{- end }}
  16. spec:
  17. type: ClusterIP
  18. clusterIP: None
  19. publishNotReadyAddresses: true
  20. ports:
  21. - name: http
  22. port: 3100
  23. targetPort: http
  24. protocol: TCP
  25. - name: grpclb
  26. port: 9095
  27. targetPort: grpc
  28. protocol: TCP
  29. selector:
  30. {{- include "loki.querySchedulerSelectorLabels" . | nindent 4 }}
  31. {{- end }}