service-query-frontend-headless.yaml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: {{ include "loki.queryFrontendFullname" . }}-headless
  5. namespace: {{ .Release.Namespace }}
  6. labels:
  7. {{- include "loki.queryFrontendLabels" . | nindent 4 }}
  8. {{- with .Values.queryFrontend.serviceLabels }}
  9. {{- toYaml . | nindent 4 }}
  10. {{- end }}
  11. prometheus.io/service-monitor: "false"
  12. {{- with .Values.loki.serviceAnnotations }}
  13. annotations:
  14. {{- toYaml . | nindent 4 }}
  15. {{- end }}
  16. spec:
  17. clusterIP: None
  18. type: ClusterIP
  19. publishNotReadyAddresses: true
  20. ports:
  21. - name: http
  22. port: 3100
  23. targetPort: http
  24. protocol: TCP
  25. - name: grpc
  26. port: 9095
  27. targetPort: grpc
  28. protocol: TCP
  29. {{- if .Values.queryFrontend.appProtocol.grpc }}
  30. appProtocol: {{ .Values.queryFrontend.appProtocol.grpc }}
  31. {{- end }}
  32. - name: grpclb
  33. port: 9096
  34. targetPort: grpc
  35. protocol: TCP
  36. {{- if .Values.queryFrontend.appProtocol.grpc }}
  37. appProtocol: {{ .Values.queryFrontend.appProtocol.grpc }}
  38. {{- end }}
  39. selector:
  40. {{- include "loki.queryFrontendSelectorLabels" . | nindent 4 }}